C Language MCQ - English
How many bytes are occupied by near, far and huge pointers (DOS)?
Home | Discussion ForumHow many bytes are occupied by near, far and huge pointers (DOS)?
Answer : A
View More Related Question
1) What will be the output of the following C code? #include <stdio.h>
int main()
{
int i = 10;
void *p = &i;
printf("%d\n", (int)*p);
return 0;
}
2) The operator used to get value at address stored in a pointer variable is
3) What will be the output of the following C code? #include <stdio.h>
int main()
{
int i = 10;
void *p = &i;
printf("%f\n", *(float*)p);
return 0;
}
4) 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);
}
5) 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);
}