void main()
{
char far *farther,*farthest;
printf("%d..%d",sizeof(farther),sizeof(farthest));
}
Answer Posted / jaroosh
Some explanation first:
far pointers are outdated concepts from C, and are actually
compiler extentions, so you might get compiler errors trying
to use far pointers on some compilers.
In the program above,
farther's type - FAR pointer to char
farthest's type - near pointer to char
now, the difference in size of those stems from the fact
that far pointers consist of the segment and offset
together, while near pointers just have the offset.
Near pointers thus have size of 2 (just the offset), while
far pointers - size of 4 bytes.
| Is This Answer Correct ? | 64 Yes | 4 No |
Post New Answer View All Answers
What is c value paradox explain?
Define macros.
write a program in c language to print your bio-data on the screen by using functions.
What is a shell structure examples?
What is void main ()?
What does calloc stand for?
Write a function that will take in a phone number and output all possible alphabetical combinations
Explain what is a stream?
Explain enumerated types.
Tell me what is null pointer in c?
What is the use of getch ()?
What are the different types of pointers used in c language?
What is pointer to pointer in c language?
What does 3 periods mean in texting?
What are integer variable, floating-point variable and character variable?