Variables
Introduction :- C is a high level language developed by Dennis Ritchie in 1972 at AT & T Bell Labs.
C is the advanced version of B language that was developed in 1970.
Mainly it is used for system development work .C is the Basics of all the language
You can also say this Mother of all Languages.
Without C you cannot learn any languages like java , C# etc.
All languages follows the basic concepts of C and implements new features like oops concepts.
SImple Basic program in C
#include<stdio.h>
#include<conio.h>
void main()
{
int a;
printf("enter any number");
scanf("%d",&a);
printf("the number is %d",a);
getch();
}
output enter any number 10
10
Description:- IN C first of all we include all the header files i.e <stdio.h> <conio.h> these are the header file. which include various methods.
stdio - it stands for standard input output. it contains printf() and scanf() methods .if you odes not include stdio.h header file then you cannot use printf and scanf function.
conio:-it stands for console input output.it contains getch().it is necessary to write getch() at the end of program because it stops the console window and you are able to see the output.
printf():-by using printf you can print the statement
scanf():- it is used to take inputs from user. we use & operator which represents the address of the variable in which we store the value.
Variables
Introduction :- C is a high level language developed by Dennis Ritchie in 1972 at AT & T Bell Labs.
C is the advanced version of B language that was developed in 1970.
Mainly it is used for system development work .C is the Basics of all the language
You can also say this Mother of all Languages.
Without C you cannot learn any languages like java , C# etc.
All languages follows the basic concepts of C and implements new features like oops concepts.
SImple Basic program in C
#include<stdio.h>
#include<conio.h>
void main()
{
int a;
printf("enter any number");
scanf("%d",&a);
printf("the number is %d",a);
getch();
}
output enter any number 10
10
Description:- IN C first of all we include all the header files i.e <stdio.h> <conio.h> these are the header file. which include various methods.
stdio - it stands for standard input output. it contains printf() and scanf() methods .if you odes not include stdio.h header file then you cannot use printf and scanf function.
conio:-it stands for console input output.it contains getch().it is necessary to write getch() at the end of program because it stops the console window and you are able to see the output.
printf():-by using printf you can print the statement
scanf():- it is used to take inputs from user. we use & operator which represents the address of the variable in which we store the value.
Variables
No comments :
Post a Comment