Pointer MCQs
Practice free Pointer multiple-choice questions with instant answer feedback and step-by-step solutions. Click an option to check yourself, reveal the full explanation, and work through all 253 questions — no login required.
Question 37easy
The address operator &, cannot act on
Question 38easy
The statement int **a;
Question 39easy
What will be the output of the following program?
#include<stdio.h>
void main()
{
int i = 10;
void *p = &i
printf("%d\n", (int)*p);
}Advertisement
Question 40easy
What will be the output of the following program code?
#include<stdio.h>
void main()
{
int i = 10;
void *p = &i
printf("%f", *(float *)p);
}Question 41easy
The operator > and < are meaningful when used with pointers, if
Question 42easy
The declaration int (*p) [5]; means
Advertisement
Question 43easy
Comment on the following? const int *ptr;
Question 44easy
Determine Output:
#include<stdio.h>
void main()
{
int *ptr, a=10;
ptr = &a
*ptr += 1;
printf("%d, %d", *ptr, a);
}Question 45easy
A function 'p' that accepts a pointer to a character as argument and returns a pointer to an array of integer can be declared as