Wednesday, 27 July 2016

A Simple C Program

Lets write a basic C program.

In order to write up your first C program, You have to download IDEs to compile and run your programs. There are various C programs available on the internet. I'm currently using Turbo c++.
Here's a link
So, lets get started.




#include<stdio.h>
main()
{
    printf("This is my first c program.");
}



Debriefing the above program.


1. A pre-processor directive.
2. A header file that contains information of some library functions like printf, scanf, etc.
3. It's a function, it is compulsory. The compilation starts from the main function.
4. printf is a library function.
5. It's a statement terminator.




No comments:

Post a Comment

If u need any help,