Simple program to assign and print value of variable

Sunday, March 13, 2016 Unknown 0 Comments



  • programs to assign variable and print it


 #include<stdio.h>
#include<conio.h>


void main()
{
     int a;       \\ declaration of intiger type variable

     a=10;    \\it assign value 10 into variable a

     printf("value of a = %d",a);

 \* here printf is library function that use to print  any massage or value of variable,,,,,%d is access specifier that specify intiger type value of variable *\

   getch();
}

Output :

value of a = 10

0 comments: