• Courses
  • Tutorials
  • Jobs
  • Practice
  • Contests

C Pointer Basics

Question 41

What does the following expression means ? 
char ∗(∗(∗ a[N]) ( )) ( );
 

  • a pointer to a function returning array of n pointers to function returning character pointers.
     

  • a function return array of N pointers to functions returning pointers to characters
     

  • an array of n pointers to function returning pointers to characters
     

  • an array of n pointers to function returning pointers to functions returning pointers to characters.
     

Question 42

The following statement in ‘C’ 
int (*f())[ ]; 
declares
 

  • a function returning a pointer to an array of integers.
     

  • a function returning an array of pointers to integers.
     

  • array of functions returning pointers to integers.
     

  • an illegal statement.
     

Question 43

What is printed by the following ANSI C program? 

#include<stdio.h> 
int main(int argc, char *argv[]) 
{ 
   int x = 1, z[2] = {10, 11}; 
   int *p = NULL; 
   p = &x; 
   *p = 10; 
   p = &z[1]; 
   *(&z[0] + 1) += 3; 
   printf("%d, %d, %d\n", x, z[0], z[1]); 
   return 0; 
}
  • 1, 10, 11 

  • 1, 10, 14 

  • 10, 14, 11

  • 10, 10, 14 

There are 43 questions to complete.

Last Updated :
Take a part in the ongoing discussion