C Language MCQ - English
The operator used to get value at address stored in a pointer variable is
Home | Discussion ForumThe 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 following C code? #include <stdio.h>
int x = 0;
void main()
{
int *ptr = &x;
printf("%p\n", ptr);
x++;
printf("%p\n ", ptr);
}
2) How many bytes are occupied by near, far and huge pointers (DOS)?
3) What would be the equivalent pointer expression for referring the array element a[i][j][k][l]
4) What will be the output of the program ? #include<stdio.h>
int main()
{
char str[20] = "Hello";
char *const p=str;
*p='M';
printf("%s\n", str);
return 0;
}
5) What will be the output of the following C code? #include <stdio.h> int *f();
int main()
{
int *p = f();
printf("%d\n", *p);
}
int *f()
{
int *j = (int*)malloc(sizeof(int));
*j = 10;
return j;
}
View Answer