News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

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