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 %d called in c?
What is use of bit field?
What is the code for 3 questions and answer check in VisualBasic.Net?
write a c programming using command line argument,demonstrate set operation(eg;union,intersection,difference) example output is c:>setop 12 34 45 1 union 34 42 66 c:>setop 12 34 1 42 66 c:>setop 12 34 diff 12 56 67 78 setop 12 34
A text file that contains declarations used by a group of functions,programs,or users a) executable file b) header file c) obj file d) .cfile
What is the main difference between calloc () and malloc ()?
how logic is used
what do u mean by Direct access files? then can u explain about Direct Access Files?
Explain bitwise shift operators?
Why can arithmetic operations not be performed on void pointers?
Explain what is the best way to comment out a section of code that contains comments?
How reliable are floating-point comparisons?
What is the difference between abs() and fabs() functions?
what is the differnce between programing langauge and tool? is sas is a programing langauge r tool?
What is storage class?