Guess the output of this C program
#include<stdio.h>
auto int k=10;
void main ()
{
int flag=-1;
if(flag)
{
printf("k is %d",k);
}
else
{
printf("false");
}
}
Frenzz What is the output of above program.Enter Your Answer in the comment box.......................
Another Interesting C program
error will occur bcoz auto stoarge type should be inside main
ReplyDeleteauto= local...
ReplyDeletenot external...
Yes....
ReplyDeleteGlobal variables should not be of auto storage class