I can copy verbatim what my instructor types in and check it twice. when i go to compile the code it tells me hi.c:4:1: error: expected identifier or '('
{
^
1 error generated.
I have tried deleting my curly brace and adding the parenthesis, sometimes if I put them both it'll work. im also being told to put a semicolon after my int main(void) which im pretty sure isnt necessary
heres the code:
#include <stdio.h>
int main(void);
{
string s = "HI!";
printf("%s\n", s);
}
should be simple right? well not for me please help. what am i doing wrong?