Hi,
How do we print the static 'a' within the scope(where the printf is called,)
#include<stdio.h>
#include<stdlib.h>
int a=1;
void fun(void)
{
static int a=2;
{
int a =3;
printf("%d %d ",a, ::a);
// here we have to print the static a
}
}
void main()
{
fun();
}
Thanks,
sanjib
---------------------------------
Choose the right car based on your needs. Check out Yahoo! Autos new Car
Finder tool.
[Non-text portions of this message have been removed]
