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 |
main(){ unsigned int i; for(i=1;i>-2;i--) printf("c aptitude"); }
main() { char *a = "Hello "; char *b = "World"; clrscr(); printf("%s", strcat(a,b)); } a. Hello b. Hello World c. HelloWorld d. None of the above
Develop a routine to reflect an object about an arbitrarily selected plane
Printf can be implemented by using __________ list.
main() { char *a = "Hello "; char *b = "World"; clrscr(); printf("%s", strcpy(a,b)); } a. “Hello” b. “Hello World” c. “HelloWorld” d. None of the above
4 Answers Corporate Society, HCL,
Display the time of the system and display the right time of the other country
void main() { char a[]="12345\0"; int i=strlen(a); printf("here in 3 %d\n",++i); }
#define SQR(x) x * x main() { printf("%d", 225/SQR(15)); } a. 1 b. 225 c. 15 d. none of the above
#include<stdio.h> main() { int i=1,j=2; switch(i) { case 1: printf("GOOD"); break; case j: printf("BAD"); break; } }
main() { int i=5,j=10; i=i&=j&&10; printf("%d %d",i,j); }
main() { int i=10; void pascal f(int,int,int); f(i++,i++,i++); printf(" %d",i); } void pascal f(integer :i,integer:j,integer :k) { write(i,j,k); }
Sir... please give some important coding questions asked by product companies..