How many bytes are occupied by near, far and huge pointers (DOS)?

Home | Discussion Forum
Taiyari24Hour

How many bytes are occupied by near, far and huge pointers (DOS)?



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) If a variable is a pointer to a structure, then which of the following operator is used to access data members of the structure through the pointer variable?

3) What will be the output of the following C code?

 #include <stdio.h>
void main()
{
int x = 0;
int *ptr = &5;
printf("%p\n", ptr);
}

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) In which header file is the NULL macro defined?

UP Gk Online Test

taiyari24hour.com

Study 2 Online Says....
Kindly log in or signup.