Difference between revisions of "C"
Jump to navigation
Jump to search
(Created page with "C programming is a powerful general purpose computer programming language. == The Famous Hello World == The famous hello world code for you to observe and admire: #include...") |
(1343434) |
||
(3 intermediate revisions by one other user not shown) | |||
Line 5: | Line 5: | ||
The famous hello world code for you to observe and admire: | The famous hello world code for you to observe and admire: | ||
− | #include <stdio.h> | + | <code>#include <stdio.h> |
int main() { | int main() { | ||
printf("Hello, World!\n"); | printf("Hello, World!\n"); | ||
return 0; | return 0; | ||
− | } | + | }</code> |
== Hello World Explained == | == Hello World Explained == | ||
− | + | <code>// This is asking the C program to include the library called stdio.h | |
− | // This is asking the C program to include the library called stdio.h | ||
#include <stdio.h> | #include <stdio.h> | ||
Line 24: | Line 23: | ||
// This is the exit code | // This is the exit code | ||
return 0; | return 0; | ||
− | } | + | }</code> |
+ | |||
+ | monke |
Latest revision as of 13:42, 4 June 2021
C programming is a powerful general purpose computer programming language.
The Famous Hello World[edit]
The famous hello world code for you to observe and admire:
#include <stdio.h>
int main() {
printf("Hello, World!\n");
return 0;
}
Hello World Explained[edit]
// This is asking the C program to include the library called stdio.h
- include <stdio.h>
// This is the main function
int main() {
// This function is printing the words "Hello, World!" with a new line break.
printf("Hello, World!\n");
// This is the exit code
return 0;
}
monke