Monday, 23 February 2015

Local Varible in C


#include<stdio.h>
#include<conio.h>
main()
{
int a=1000;

{
int a=1;
printf("\n A Value is :%d",a);
}

{
int a=10;
printf("\n A Value is :%d",a);
}

{
int a=100;
printf("\n A Value is :%d",a);
}

printf("\n A Value is :%d",a);
getch();
}

No comments:

Post a Comment