A Simple C Program
In every 'C' program must have "main" function .Here is the point where execution starts. The group of statements defined in the "main" enclosed in a pair of braces {}. Every expression statement must end with a semicolon & tell to compiler that this statement is ends here .The closing brace of the main tell to compiler that end of the program.
When
you execute(run) program you won’t see "You are into C" on
the console becz. the screen will just pop ups and go away
.If you want to see the line you can use getch()(use conio.h file) function just below the
printf().
for save F2
for run use CTRL+F9
For compile use ALT+F9
for see output use ALT+F5
*stdio.h is a header file which is like a library for printf.
*main is the function of program without main function no one can execute or run a program
* whenever you write anything else in between of " " it prints as it is what you written
#include<stdio.h>
void main ()
{
printf
("You are into C ”);
Always make a habit ,before Executing the program,save it
Download turbo c compiler
1 comments:
I read this article fully on the topic of the difference of most
up-to-date and previous technologies, it's awesome article.
Have a look at my website; best double strollers
Post a Comment