Pointers Questions and Answers

Practice Mode
Showing 10 of 217 questions
Q61
The arguments in main ( ) function are known as
  • A prgram parameters
  • B command line arguments
  • C both options a and b
  • D memory in-line format conversion
Answer: Option C
Q62
The arguments argv { } is used to
  • A count the number of command line arguments
  • B pass strings to the programs including the excecution command
  • C both options a and b
  • D pass strings to the programs excluding the excecution command
Answer: Option B
Q63
The argc in main ( ) is used to
  • A count the number of command line arguments
  • B pass strings to the programs
  • C both options a and b
  • D count the number of lines in a program
Answer: Option A
Q64
In the declaration double (*pf) ();
  • A pf is a pointer to a function
  • B pf is a function returning pointer
  • C pf is a pointer to array
  • D pf is an array of pointers.
Answer: Option A
Q65
In the declaration double *f( );
  • A f is a pointer to a function
  • B fi is a function returning a pointer
  • C f is an array of function
  • D f is an pointer to array
Answer: Option B
Q66
Identify the invalid  assignment , for given int *p, x;
  • A p = 0
  • B p = 255864u;
  • C p = &x;
  • D *p = 10; /* assume valid pointer is already assigned to p*/
Answer: Option B
Q67
The operations that can be performed on pointers are
  • A addition or subtraction of a pointer and an integer
  • B assignment of pointer using pointer expression
  • C assignment of the value 0 to a pointer
  • D all the above
Answer: Option D
Q68
The invalid address arithmetic is (are 0
  • A adding two pointers
  • B multiplying two pointers
  • C dividing two pointers
  • D all the above
Answer: Option D
Q69
The invalid pointer arithmetic is (are )
  • A shifting pointers using shift operators
  • B addition of float or double values to printers
  • C both options a and b
  • D incrementing pointers
Answer: Option C
Q70
The declaration float (*f[5]) (); is
  • A an array of pointers to a function returning float
  • B pointer to an array
  • C function returning pointer to array
  • D pointer to a function returning an array of pointers to float
Answer: Option A
Questions and Answers for Competitive Exams Various Entrance Test