http://embeddeddesignblog.com
173. What is block scope in c ?
174. What is Function scope in c ?
175. What is the output?
#include
void display();
int main()
{
printf("In MAIN");
goto xyz;
return 0;
}
176. What is the output?
void display()
{
xyx:;
printf("In DISPLay");
}
177. File scope of variable in c?
178. What is program scope in c?
179. What is auto storage class in c?
180. What is the output?
#include
int main()
{
int a=10;
{
int a=20;
printf("%d",a);
}
printf(" %d",a);
return 0;
}
181. What is the output
#include
int main()
{
{
int a=20;
printf("%d",a);
}
printf(" %d",a); //a is not visible here
return 0;
}
0 Comments