Your First C Program
To get a feel of what C code looks like, let's write our first C program.
We will write a simple Hello, World! program.
Example
#include <stdio.h>
int main() {
printf("Hello, World!");
return 0;
}
Don't worry about the code. For now, just press the "Run Code" button to run the code.
If you get Hello, World! as output, congratulations, you have successfully run your first program.
The code above shows the basic structure of a C program. Let's now explore this topic in brief.