Home
C / ANSI-C
assert.h
Console
ctype.h
Data Structure Algorithm
Data Type
Development
File
Function
Language Basics
Macro Preprocessor
Math
math.h
Memory
Pointer
setjmp.h
signal.h
Small Application
stdio.h
stdlib.h
String
string.h
Structure
time.h
wctype.h
main function : Main « Language Basics « C / ANSI-C
C / ANSI-C
Language Basics
Main
main function
#include <stdio.h>
int
main(
void
) { printf(
"This is a short C program."
);
return
0; }
Related examples in the same category
1.
Display Hello: output String
2.
Display Hello and your name
3.
Simple string ouput
4.
A for loop inside main function
5.
Const function in all c programs: main() function
6.
Program starts with main function