9836577512   info@smcacademy.com

Admission Going On…. Our Android App Available on Google Play Store…

  • 82


More or less we all know that “C” is a mother language of all programming, so everyone should learn basic “C programmming” if they want to enter in development industry. In every development courses you can get some idea on C & C++ language. But it is always better to learn these languages in depth. For this reason we, at SMC Academy has started sharing basic tips on “C Programming”. You can follow our blogs regulary to learn more about such languages. Hope you’ll be able to gain knowledge from here.

Lets start with our today’s tips:

#include <stdio.h>

int main()


printf(“SMC ACADEMY”);

return 0;


The  #include <stdio.h> is used as a pre processor command. This command tells compiler to include the contents of stdio.h (standard input and output) file in the program.
The stdio.h file contains functions such as scanf() and printf() to take input and display output respectively.

If you use printf() function without writing

#include <stdio.h>, the program will not be compiled.

The execution of a C program starts from the main() function.

The printf() is a library function to send formatted output to the screen. In this program, the printf() displays SMC Academy text on the screen.

The return 0; statement is the “Exit status” of the program.

If you use void main() instead of int main() then you have to end with getch();

About admin


Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Open chat
Basic Tips on “C” Programming