News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

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