main()
{
extern i;
printf("%d\n",i);
{
int i=20;
printf("%d\n",i);
}
}
Answer / susie
Answer :
Linker Error : Unresolved external symbol i
Explanation:
The identifier i is available in the inner block and so
using extern has no use in resolving it.
Is This Answer Correct ? | 2 Yes | 0 No |
What is full form of PEPSI
Is the following code legal? void main() { typedef struct a aType; aType someVariable; struct a { int x; aType *b; }; }
void main() { int i=5; printf("%d",i++ + ++i); }
What is the main difference between STRUCTURE and UNION?
Given a spherical surface, write bump-mapping procedure to generate the bumpy surface of an orange
main() { int i=-1; -i; printf("i = %d, -i = %d \n",i,-i); }
how to return a multiple value from a function?
main() { int i=1; while (i<=5) { printf("%d",i); if (i>2) goto here; i++; } } fun() { here: printf("PP"); }
program to find magic aquare using array
#define assert(cond) if(!(cond)) \ (fprintf(stderr, "assertion failed: %s, file %s, line %d \n",#cond,\ __FILE__,__LINE__), abort()) void main() { int i = 10; if(i==0) assert(i < 100); else printf("This statement becomes else for if in assert macro"); }
main() { char a[4]="HELL"; printf("%s",a); }
Write a single line c expression to delete a,b,c from aabbcc