C programming

C is the first programming language.c is high level, general parpose, structure programming language. There are 32 keys in c language e.g if,print,scan,else,for,do,etc.

Genral for or you can say sintex for c program should be follows: Header files
Void mani( )or int main( )
{

Variable declaration;
Statements;
enter 0; or getch ( );

}

For e.g 1.addition of 2 no.

#include <stdio.h>

int main()
{ int num1,num2,sum;
printf(“enter the first no;”);
scanf(“%d”,&num1);
printf(“enter the second no:”); scanf(“%d”,&num2); sum=num1+num2; printf(“Sum of two no is %d:”,sum);
getch ();
}

3 thoughts on “C programming

Leave a reply to Aditya Pradip Patil Cancel reply

Design a site like this with WordPress.com
Get started