News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

"Syntax error: "(" unexpected", in obviously correct hello world code

Started by zubr, March 31, 2024, 12:26:49 PM

Previous topic - Next topic

zubr

Ubuntu, installed codeblocks via terminal command, created an empty file, saved it on a path, typed these codes in, build and run, then 3: Syntax error: "(" unexpected

#include <stdio.h>

int main(){
    printf("a");
    return 0;}

Miguel Gimenez