Pointers in C Programming MCQ (Multiple Choice Questions And Answers)
Be Ready for the next job or online test practice for pointers in c programming
Are you preparing for the next job interviews? If yes, trust me this post will help you also we'll suggest you check out a big collection for Programming Full Forms that may help you in your interview:
List of Programming Full Forms
- Initialized
- Declared
- Both A and C
- None of the above
#include <stdio.h>
int main()
{
int i = 10;
void *p = &i;
printf("%d\n", (int)*p);
return 0;
}
- Segmentation fault/runtime crash
- Compile time error
- 20
- Undefined Behaviour
- int*matrix; .....; free(void) matrix;
- int*matrix; .....; if(matrix!=null) free(void*)matrix;
- Both A and B
- None of the above
#include<stdio.h>
int main()
{
int y=128;
const int x=y;
printf("%d\n", x);
return 0;
}
- Garbage Value
- Error
- 128
- 0