C Programming :: Pointers
-
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?
-
Point out the compile time error in the program given below.
#include stdio.hint main(){int *x;*x=100;return 0;} -
Which of the statements is correct about the program?
#include int main() { float a=3.14; char *j; j = (char*)&a; printf("%d\n", *j); return 0; } -
In the following program add a statement in the function fun() such that address of a gets stored in j?
#include int main() { int *j; void fun(int**); fun(&j); return 0; } void fun(int **k) { int a=10; /* Add a statement here */ } -
Which of the following statements correct about k used in the below statement?
char ****k; -
Which of the statements is correct about the program?
#includeint main() { int arr[3][3] = {1, 2, 3, 4}; printf("%d\n", *(*(*(arr)))); return 0; } -
Which statement will you add to the following program to ensure that the program outputs "FRESHERGATE" on execution?
#includeint main() { char s[] = "FRESHERGATE"; char t[25]; char *ps, *pt; ps = s; pt = t; while(*ps) *pt++ = *ps++; /* Add a statement here */ printf("%s\n", t); return 0; }

Whatsapp
Facebook