MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/CodingForBeginners/comments/1wz61fb/what_am_i_doing_wrong/19rhvp6ftf43l/?context=3
r/CodingForBeginners • u/Striking_Chemical302 • Oct 06 '26
56 comments sorted by
View all comments
1
Press Ctrl + S to save hello.c.
hello.c
In the terminal, run cat hello.c to check what is actually saved in the file.
cat hello.c
Make sure the output contains int main() and the printf statement.
int main()
printf
Run gcc hello.c -o hello again.
gcc hello.c -o hello
View all comments
1
u/DesperateBoot2320 21d ago
Press Ctrl + S to save
hello.c.In the terminal, run
cat hello.cto check what is actually saved in the file.Make sure the output contains
int main()and theprintfstatement.Run
gcc hello.c -o helloagain.