<<= Back Next =>>
You Are On Multi Choice Question Bank SET 186

9301. They.............once a week.





9302. The synonym of dignitary is .................





9303. What would be the equivalent pointer expression for referring the array element a[i][j][k][l]





9304. A pointer is





9305. The operator used to get value at address stored in a pointer variable is





9306. What will be the output of the program ? #include<stdio.h> int main() { static char s[] = {"black", "white", "pink", "violet"}; char ptr[] = {s+3, s+2, s+1, s}, p; p = ptr; ++p; printf("%s", p+1); return 0; }





9307. What will be the output of the program ? #include<stdio.h> int main() { int i=3, j, k; j = &i; printf("%d\n", iji+j); return 0; }





9308. What will be the output of the program ? #include<stdio.h> int main() { int x=30, y, z; y=&x; / Assume address of x is 500 and integer is 4 byte size / z=y; y++=z++; x++; printf("x=%d, y=%d, z=%d\n", x, y, z); return 0; }





9309. What will be the output of the program ? #include<stdio.h> int main() { char str[20] = "Hello"; char const p=str; p='M'; printf("%s\n", str); return 0; }





9310. കൃഷ്ണദേവരായരുടെ സദസ്സിലെ വിദൂഷകനായ പണ്ഡിതൻ? [Krushnadevaraayarude sadasile vidooshakanaaya pandithan?]





9311. What will be the output of the program If the integer is 4bytes long? #include<stdio.h> int main() { int r, q, p, i=8; p = &i; q = &p; r = &q; printf("%d, %d, %d\n", p, q, r); return 0; }





9312. What will be the output of the program ? #include<stdio.h> void fun(void p); int i; int main() { void vptr; vptr = &i; fun(vptr); return 0; } void fun(void p) { int q; q = (int)&p; printf("%d\n", q); }





9313. What will be the output of the program ? #include<stdio.h> int main() { char str; str = "%s"; printf(str, "K\n"); return 0; }





9314. What will be the output of the program ? #include<stdio.h> int check(static int, static int); int main() { int c; c = check(10, 20); printf("%d\n", c); return 0; } int check(static int i, static int j) { int p, q; p = &i; q = &j; if(i >= 45) return (p); else return (q); }





9315. What will be the output of the program if the size of pointer is 4-bytes? #include<stdio.h> int main() { printf("%d, %d\n", sizeof(NULL), sizeof("")); return 0; }





9316. What will be the output of the program ? #include<stdio.h> int main() { void vp; char ch=74, cp="JACK"; int j=65; vp=&ch; printf("%c", (char)vp); vp=&j; printf("%c", (int)vp); vp=cp; printf("%s", (char)vp+2); return 0; }





9317. What will be the output of the program? #include<stdio.h> int main() { int arr[2][2][2] = {10, 2, 3, 4, 5, 6, 7, 8}; int p, q; p = &arr[1][1][1]; q = (int) arr; printf("%d, %d\n", p, q); return 0; }





9318. What will be the output of the program assuming that the array begins at the location 1002 and size of an integer is 4 bytes? #include<stdio.h> int main() { int a[3][4] = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 }; printf("%u, %u, %u\n", a[0]+1, (a[0]+1), ((a+0)+1)); return 0; }





9319. What will be the output of the program? #include<stdio.h> int main() { int arr[3] = {2, 3, 4}; char p; p = arr; p = (char)((int)(p)); printf("%d, ", p); p = (int)(p+1); printf("%d", p); return 0; }





9320. What will be the output of the program ? #include<stdio.h> int main() { char str; str = "%d\n"; str++; str++; printf(str-2, 300); return 0; }





9321. What will be the output of the program ? #include<stdio.h> int main() { printf("%c\n", 7["IndiaBIX"]); return 0; }





9322. What will be the output of the program ? #include<stdio.h> int main() { char str[] = "peace"; char s = str; printf("%s\n", s++ +3); return 0; }





9323. What will be the output of the program ? #include<stdio.h> int main() { char p; p="hello"; printf("%s\n", &&p); return 0; }





9324. What will be the output of the program assuming that the array begins at location 1002? #include<stdio.h> int main() { int a[2][3][4] = { {1, 2, 3, 4, 5, 6, 7, 8, 9, 1, 1, 2}, {2, 1, 4, 7, 6, 7, 8, 9, 0, 0, 0, 0} }; printf("%u, %u, %u, %d\n", a, a, a, a); return 0; }





9325. What will be the output of the program ? #include<stdio.h> power(int); int main() { int a=5, aa; / Address of 'a' is 1000 / aa = &a; a = power(&aa); printf("%d\n", a); return 0; } power(int ptr) { int b; b = ptrptr; return (b); }





9326. What will be the output of the program ? #include<stdio.h> int main() { char str1[] = "India"; char str2[] = "BIX"; char s1 = str1, s2=str2; while(s1++ = s2++) printf("%s", str1); printf("\n"); return 0; }





9327. What will be the output of the program ? #include<stdio.h> #include<string.h> int main() { int i, n; char x="Alice"; n = strlen(x); x = x[n]; for(i=0; i<=n; i++) { printf("%s ", x); x++; } printf("\n", x); return 0; }





9328. What will be the output of the program ? #include<stdio.h> int main() { int i, a[] = {2, 4, 6, 8, 10}; change(a, 5); for(i=0; i<=4; i++) printf("%d, ", a[i]); return 0; } void change(int b, int n) { int i; for(i=0; i<n; i++) (b+1) = (b+i)+5; }





9329. If the size of integer is 4bytes, What will be the output of the program? #include<stdio.h> int main() { int arr[] = {12, 13, 14, 15, 16}; printf("%d, %d, %d\n", sizeof(arr), sizeof(arr), sizeof(arr[0])); return 0; }





9330. Point out the compile time error in the program given below. #include<stdio.h> int main() { int x; x=100; return 0; }





9331. Point out the error in the program #include<stdio.h> int main() { int a[] = {10, 20, 30, 40, 50}; int j; for(j=0; j<5; j++) { printf("%d\n", a); a++; } return 0; }





9332. Which of the following statements correctly declare a function that receives a pointer to pointer to a pointer to a float and returns a pointer to a pointer to a pointer to a pointer to a float?





9333. Which of the statements is correct about the program? #include<stdio.h> int main() { int i=10; int j=&i; return 0; }





9334. Which of the statements is correct about the program? #include<stdio.h> int main() { float a=3.14; char j; j = (char)&a; printf("%d\n", j); return 0; }





9335. In the following program add a statement in the function fun() such that address of a gets stored in j? #include<stdio.h> int main() { int j; void fun(int); fun(&j); return 0; } void fun(int k) { int a=10; / Add a statement here / }





9336. Which of the following statements correct about k used in the below statement? char k;





9337. Which of the statements is correct about the program? #include<stdio.h> int main() { int arr[3][3] = {1, 2, 3, 4}; printf("%d\n", (((arr)))); return 0; }





9338. Which statement will you add to the following program to ensure that the program outputs "IndiaBIX" on execution? #include int main() { char s[] = "IndiaBIX"; char t[25]; char ps, pt; ps = s; pt = t; while(ps) pt++ = ps++; / Add a statement here / printf("%s\n", t); return 0; }





9339. In the following program add a statement in the function fact() such that the factorial gets stored in j. #include void fact(int); int main() { int i=5; fact(&i); printf("%d\n", i); return 0; } void fact(int j) { static int s=1; if(j!=0) { s = sj; j = j-1; fact(j); / Add a statement here / } }





9340. Are the expression ptr++ and ++ptr are same?



9341. Will the program compile? #include<stdio.h> int main() { char str[5] = "IndiaBIX"; return 0; }



9342. The following program reports an error on compilation. #include<stdio.h> int main() { float i=10, j; void k; k=&i; j=k; printf("%f\n", j); return 0; }



9343. Are the three declarations char apple, char apple[], and char apple[][] same?



9344. Is there any difference between the following two statements? char p=0; char t=NULL;



9345. Is this a correct way for NULL pointer assignment? int i=0; char q=(char)i;



9346. Is the NULL pointer same as an uninitialised pointer?



9347. Will the program compile in Turbo C? #include<stdio.h> int main() { int a=10, j; void k; j=k=&a; j++; k++; printf("%u %u\n", j, k); return 0; }



9348. Will the following program give any warning on compilation in TurboC (under DOS)? #include<stdio.h> int main() { int p1, i=25; void p2; p1=&i; p2=&i; p1=p2; p2=p1; return 0; }



9349. What is (void)0?





9350. Can you combine the following two statements into one? char p; p = (char) malloc(100);





<<= Back Next =>>
Terms And Service:We do not guarantee the accuracy of available data ..We Provide Information On Public Data.. Please consult an expert before using this data for commercial or personal use | Powered By:Omega Web Solutions
© 2002-2017 Omega Education PVT LTD...Privacy | Terms And Conditions
Question ANSWER With Solution