C - Data Types - Discussion

You Are Here :: Home > C > Data Types - Discussion

 



Q.

#include

int main(){
int near* near * ptr;
printf("%d",sizeof(ptr),sizeof(*ptr));
return 0;
}

A. 0 2 B. 2 0
C. 2 2 D. None of these

Answer: Option C
Explaination:

Size of any type of near pointer is two byte.Near pointer only hold 16 bit offset address. Offset address varies from 0000 to FFFF (in hexadecimal).



Discussion

Your Comments Goes here...
NameDiscussion