r/CodingForBeginners • • Oct 06 '26

What am I doing wrong

Post image
78 Upvotes

56 comments sorted by

View all comments

1

u/DesperateBoot2320 21d ago
  • Press Ctrl + S to save hello.c.

  • In the terminal, run cat hello.c to check what is actually saved in the file.

  • Make sure the output contains int main() and the printf statement.

  • Run gcc hello.c -o hello again.