ExamLookup
Menu mobile
Home
Current Affairs
General Knowledge
Computer
Python
HTML
MCQ C - POINTERS MCQ Questions
English
Hindi
Question No. -
31
Report Bug
What do the following declarations signify? void *cmp();
What do the following declarations signify? void *cmp();
A.
cmp is a pointer to an void type.
cmp is a pointer to an void type.
B.
cmp is a void type pointer variable.
cmp is a void type pointer variable.
C.
cmp is a function that return a void pointer.
cmp is a function that return a void pointer.
D.
cmp function returns nothing.
cmp function returns nothing.
Question No. -
32
Report Bug
NULL pointer points the base address of segment.
NULL pointer points the base address of segment.
A.
TRUE
सही
B.
FALSE
गलत
Question No. -
33
Report Bug
In ‘C’, if you pass an array as an argument to a function, value of elements in array actually gets passed?
In ‘C’, if you pass an array as an argument to a function, value of elements in array actually gets passed?
A.
TRUE
सही
B.
FALSE
गलत
Question No. -
34
Report Bug
What will be the output of the following code segment?
char *p = "Structured Programming";
printf("%s", p + 5);
What will be the output of the following code segment?
char *p = "Structured Programming";
printf("%s", p + 5);
A.
Structured Programming
Structured Programming
B.
tured Programming
tured Programming
C.
ctured Programming
ctured Programming
D.
There will be no output as there is a syntax error in code
There will be no output as there is a syntax error in code
Question No. -
35
Report Bug
*ptr ++ is equivalent to
*ptr ++ is equivalent to
A.
ptr++
ptr++
B.
*ptr
*ptr
C.
++ptr
++ptr
D.
++*ptr
++*ptr
Question No. -
36
Report Bug
Declaration int *(*p) int(*a) is
Declaration int *(*p) int(*a) is
A.
A pointer to function that accept an integer argument and return an integer
A pointer to function that accept an integer argument and return an integer
B.
A pointer to a, which returns an integer
A pointer to a, which returns an integer
C.
A pointer to subroutine which returns an integer
A pointer to subroutine which returns an integer
D.
None of the above
None of the above
Question No. -
37
Report Bug
Which of the following defines a variable ‘a’ as an array of pointers to integers?
Which of the following defines a variable ‘a’ as an array of pointers to integers?
A.
int *b[10], a[10];
int *b[10], a[10];
B.
int *b, a[10];
int *b, a[10];
C.
int b, *a[10];
int b, *a[10];
D.
int b, (*a)[10];
int b, (*a)[10];
Question No. -
38
Report Bug
Consider a structure defined as follows:
struct student {
int rollNo, marks;
char name[30], course[30];
} s, *sp;
Which of the following is the correct way to access the members of the structure?
Consider a structure defined as follows:
struct student {
int rollNo, marks;
char name[30], course[30];
} s, *sp;
Which of the following is the correct way to access the members of the structure?
A.
sp.marks
sp.marks
B.
sp -> rollNo
sp -> rollNo
C.
student.course
student.course
D.
s -> name
s -> name
Question No. -
39
Report Bug
Which of the following statements will not dynamically allocate space to store 10 integers?
Which of the following statements will not dynamically allocate space to store 10 integers?
A.
int a[10];
int a[10];
B.
int *p = (int *) malloc(10 * sizeof(int));
int *p = (int *) malloc(10 * sizeof(int));
C.
int *p = (int *) calloc(10, sizeof(int));
int *p = (int *) calloc(10, sizeof(int));
D.
none of the above
none of the above
Question No. -
40
Report Bug
If char *p = "Structured Programming", then p[5] is 'c'.
If char *p = "Structured Programming", then p[5] is 'c'.
A.
TRUE
सही
B.
FALSE
गलत
1
2
3
4
5
6
CCC Online Test 2021
CCC Practice Test Hindi
Python Programming Tutorials
Best Computer Training Institute in Prayagraj (Allahabad)
O Level NIELIT Study material and Quiz
Bank SSC Railway TET UPTET Question Bank
career counselling in allahabad
Sarkari Exam Quiz
Website development Company in Allahabad