Page 1 of 10, Total 297 results. | Shuffle Order | Flagged | Next Page
8169 What does the following declaration mean? int (*ptr)[10];
Options:ptr is array of pointers to 10 integers,    ptr is a pointer to an array of 10 integers,    ptr is an array of 10 integers,    ptr is an pointer to array

Loading Facebook Comment system, Please wait...
Loading Facebook Comment system, Please wait...
8170 In C, if you pass an array as an argument to a function, what actually gets passed?
Options:Value of elements in array,    First element of the array,    Base address of the array,    Address of the last element of array

Loading Facebook Comment system, Please wait...
Loading Facebook Comment system, Please wait...
8171 What will be the output of the program if the array begins at 65472 and each integer occupies 2 bytes? #include<stdio.h> int main() { int a[3][4] = {1, 2, 3, 4, 4, 3, 2, 1, 7, 8, 9, 0}; printf("%u, %u\n", a+1, &a+1); return 0; }
Options:65474, 65476,    65480, 65496,    65480, 65488,    65474, 65488

Loading Facebook Comment system, Please wait...
Loading Facebook Comment system, Please wait...
8172 What will be the output of the program in Turb C (under DOS)? #include<stdio.h> int main() { int arr[5], i=0; while(i<5) arr[i]=++i; for(i=0; i<5; i++) printf("%d, ", arr[i]); return 0; }
Options:1, 2, 3, 4, 5,,    Garbage value, 1, 2, 3, 4,,    0, 1, 2, 3, 4,,    2, 3, 4, 5, 6,

Loading Facebook Comment system, Please wait...
Loading Facebook Comment system, Please wait...
8173 What will be the output of the program ? #include<stdio.h> int main() { int arr[1]={10}; printf("%d\n", 0[arr]); return 0; }
Options:1,    10,    0,    6

Loading Facebook Comment system, Please wait...
Loading Facebook Comment system, Please wait...
8174 What will be the output of the program if the array begins at address 65486? #include<stdio.h> int main() { int arr[] = {12, 14, 15, 23, 45}; printf("%u, %u\n", arr, &arr); return 0; }
Options:65486, 65488,    65486, 65486,    65486, 65490,    65486, 65487

Loading Facebook Comment system, Please wait...
Loading Facebook Comment system, Please wait...
8175 What will be the output of the program ? #include<stdio.h> int main() { float arr[] = {12.4, 2.3, 4.5, 6.7}; printf("%d\n", sizeof(arr)/sizeof(arr[0])); return 0; }
Options:5,    4,    6,    7

Loading Facebook Comment system, Please wait...
Loading Facebook Comment system, Please wait...
8176 What will be the output of the program if the array begins 1200 in memory? #include<stdio.h> int main() { int arr[]={2, 3, 4, 1, 6}; printf("%u, %u, %u\n", arr, &arr[0], &arr); return 0; }
Options:1200, 1202, 1204,    1200, 1200, 1200,    1200, 1204, 1208,    1200, 1202, 1200

Loading Facebook Comment system, Please wait...
Loading Facebook Comment system, Please wait...
8177 What will be the output of the program ? #include<stdio.h> int main() { int a[5] = {5, 1, 15, 20, 25}; int i, j, m; i = ++a[1]; j = a[1]++; m = a[i++]; printf("%d, %d, %d", i, j, m); return 0; }
Options:2, 1, 15,    1, 2, 5,    3, 2, 15,    2, 3, 20

Loading Facebook Comment system, Please wait...
Loading Facebook Comment system, Please wait...
8178 What will be the output of the program ? #include<stdio.h> int main() { static int a[2][2] = {1, 2, 3, 4}; int i, j; static int *p[] = {(int*)a, (int*)a+1, (int*)a+2}; for(i=0; i<2; i++) { for(j=0; j<2; j++) { printf("%d, %d, %d, %d\n", *(*(p+i)+j), *(*(j+p)+i), *(*(i+p)+j), *(*(p+j)+i)); } } return 0; }
Options:1, 1, 1, 1 2, 3, 2, 3 3, 2, 3, 2 4, 4, 4, 4,    1, 2, 1, 2 2, 3, 2, 3 3, 4, 3, 4 4, 2, 4, 2,    1, 1, 1, 1 2, 2, 2, 2 2, 2, 2, 2 3, 3, 3, 3,    1, 2, 3, 4 2, 3, 4, 1 3, 4, 1, 2 4, 1, 2, 3

Loading Facebook Comment system, Please wait...
Loading Facebook Comment system, Please wait...
Those who attempted this question also tried following:
Page 1 of 10, Total 297 results. | Shuffle Order | Flagged | Next Page
8169 What does the following declaration mean? int (*ptr)[10];
Options:ptr is array of pointers to 10 integers,    ptr is a pointer to an array of 10 integers,    ptr is an array of 10 integers,    ptr is an pointer to array

Show Answer
Loading Facebook Comment system, Please wait...
Loading Facebook Comment system, Please wait...
8170 In C, if you pass an array as an argument to a function, what actually gets passed?
Options:Value of elements in array,    First element of the array,    Base address of the array,    Address of the last element of array

Show Answer
Loading Facebook Comment system, Please wait...
Loading Facebook Comment system, Please wait...
8171 What will be the output of the program if the array begins at 65472 and each integer occupies 2 bytes? #include<stdio.h> int main() { int a[3][4] = {1, 2, 3, 4, 4, 3, 2, 1, 7, 8, 9, 0}; printf("%u, %u\n", a+1, &a+1); return 0; }
Options:65474, 65476,    65480, 65496,    65480, 65488,    65474, 65488

Show Answer
Loading Facebook Comment system, Please wait...
Loading Facebook Comment system, Please wait...
8172 What will be the output of the program in Turb C (under DOS)? #include<stdio.h> int main() { int arr[5], i=0; while(i<5) arr[i]=++i; for(i=0; i<5; i++) printf("%d, ", arr[i]); return 0; }
Options:1, 2, 3, 4, 5,,    Garbage value, 1, 2, 3, 4,,    0, 1, 2, 3, 4,,    2, 3, 4, 5, 6,

Show Answer
Loading Facebook Comment system, Please wait...
Loading Facebook Comment system, Please wait...
8173 What will be the output of the program ? #include<stdio.h> int main() { int arr[1]={10}; printf("%d\n", 0[arr]); return 0; }
Options:1,    10,    0,    6

Show Answer
Loading Facebook Comment system, Please wait...
Loading Facebook Comment system, Please wait...
8174 What will be the output of the program if the array begins at address 65486? #include<stdio.h> int main() { int arr[] = {12, 14, 15, 23, 45}; printf("%u, %u\n", arr, &arr); return 0; }
Options:65486, 65488,    65486, 65486,    65486, 65490,    65486, 65487

Show Answer
Loading Facebook Comment system, Please wait...
Loading Facebook Comment system, Please wait...
8175 What will be the output of the program ? #include<stdio.h> int main() { float arr[] = {12.4, 2.3, 4.5, 6.7}; printf("%d\n", sizeof(arr)/sizeof(arr[0])); return 0; }
Options:5,    4,    6,    7

Show Answer
Loading Facebook Comment system, Please wait...
Loading Facebook Comment system, Please wait...
8176 What will be the output of the program if the array begins 1200 in memory? #include<stdio.h> int main() { int arr[]={2, 3, 4, 1, 6}; printf("%u, %u, %u\n", arr, &arr[0], &arr); return 0; }
Options:1200, 1202, 1204,    1200, 1200, 1200,    1200, 1204, 1208,    1200, 1202, 1200

Show Answer
Loading Facebook Comment system, Please wait...
Loading Facebook Comment system, Please wait...
8177 What will be the output of the program ? #include<stdio.h> int main() { int a[5] = {5, 1, 15, 20, 25}; int i, j, m; i = ++a[1]; j = a[1]++; m = a[i++]; printf("%d, %d, %d", i, j, m); return 0; }
Options:2, 1, 15,    1, 2, 5,    3, 2, 15,    2, 3, 20

Show Answer
Loading Facebook Comment system, Please wait...
Loading Facebook Comment system, Please wait...
8178 What will be the output of the program ? #include<stdio.h> int main() { static int a[2][2] = {1, 2, 3, 4}; int i, j; static int *p[] = {(int*)a, (int*)a+1, (int*)a+2}; for(i=0; i<2; i++) { for(j=0; j<2; j++) { printf("%d, %d, %d, %d\n", *(*(p+i)+j), *(*(j+p)+i), *(*(i+p)+j), *(*(p+j)+i)); } } return 0; }
Options:1, 1, 1, 1 2, 3, 2, 3 3, 2, 3, 2 4, 4, 4, 4,    1, 2, 1, 2 2, 3, 2, 3 3, 4, 3, 4 4, 2, 4, 2,    1, 1, 1, 1 2, 2, 2, 2 2, 2, 2, 2 3, 3, 3, 3,    1, 2, 3, 4 2, 3, 4, 1 3, 4, 1, 2 4, 1, 2, 3

Show Answer
Loading Facebook Comment system, Please wait...
Loading Facebook Comment system, Please wait...
www.000webhost.com