i started to put in the hello world code in my compiler
and i've tried to build it and it pops up this message
error C2447: '{' : missing function header (old-style formal list?)how do i fix it
here is the code

#include <stdio.h>
;
int main (void)
;{
	printf{"Hello World!\n"};
	return 0;
;} // main

You have a lot of unnecessary semicolons. Also, in printf{"Hello World!\n"}; you use parentheses, not braces:

#include <stdio.h>

int main (void)
{
	printf("Hello World!\n");
	return 0;
} // main
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.