In this post, we will learn that how to print the value of a variable whose value is assigned at the time of declaration.
/*
Developed by deepak anand.
For more programs,
visit programming-stuff-4-u.blogspot.in
*/
//Wap to print values of variable given at declaration time
#include<stdio.h>
#include<conio.h>
void main()
{
int a=10;
int b=20;
clrscr();
printf("Value of a=%d",a);
printf("\nValue of b=%d",b);
getch();
}
download file: click here
No comments:
Post a Comment