C Language MCQ - English
The operator used to get value at address stored in a pointer variable is
Answer : A
View More Related Question
1) What will be the output of the program ? #include<stdio.h>
int main()
{
static char *s[] = {"black", "white", "pink", "violet"};
char **ptr[] = {s+3, s+2, s+1, s}, ***p;
p = ptr;
++p;
printf("%s", **p+1);
return 0;
}
2) What will be the output of the following C code? #include <stdio.h>
int x = 0;
void main()
{
int *ptr = &x;
printf("%p\n", ptr);
x++;
printf("%p\n ", ptr);
}
3) What will be the output of the following C code? #include <stdio.h>
void main()
{
int x = 0;
int *ptr = &x;
printf("%d\n", *ptr);
}
4) What is (void*)0?
5) Comment on the following pointer declaration. int *ptr, p;
View Answer