I am fairly new to C coding and cannot get a simple C hello world code to work with Visual Studio Code. The code looks like this:
#include <stdio.h>
int main() {
// printf() displays the string inside quotation
printf("Hello, World!");
return 0;
}
and I get two error messages:
line 2: syntax error near unexpected token `('
line 2: `int main() {'
Any suggestions on what can be going wrong?
