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.
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjzV4-Aayoedwej16FFOqtIKH35vwfLHeso5IAGRWVof22MpNijD78PXRUkGzBqwlOF22mGO4RxiB1LuWMwJck51_r0aZVVny2J-oXhn5Fnglvrth9Tc-z9uCKCTSotHurtj7Mks0lO9kg/s320/First+c+prog.png)
#include<stdio.h>
main()
{
printf("This is my first c program.");
}
Debriefing the above program.
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjzV4-Aayoedwej16FFOqtIKH35vwfLHeso5IAGRWVof22MpNijD78PXRUkGzBqwlOF22mGO4RxiB1LuWMwJck51_r0aZVVny2J-oXhn5Fnglvrth9Tc-z9uCKCTSotHurtj7Mks0lO9kg/s320/First+c+prog.png)
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,