Skip to content

Instantly share code, notes, and snippets.

@qazi0
Created July 23, 2020 07:52
Show Gist options
  • Save qazi0/723e6c933161680d5892298926183d57 to your computer and use it in GitHub Desktop.
Save qazi0/723e6c933161680d5892298926183d57 to your computer and use it in GitHub Desktop.
Hello world (commented)
// Including the header file stdio.h
#include <stdio.h>
// Defining the main() function
int main()
{ // main() function opening brace
// To display some text on the screen, we use the printf() function from stdio.h file
printf(" Hello World! \n"); // The '\n' at the end means new line
// Return 0 to the operating system, which denotes success
return 0;
} // main() function opening brace
/* Note how each statement inside the braces has to end with a semicolon. */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment