void main()
{
char far *farther,*farthest;
printf("%d..%d",sizeof(farther),sizeof(farthest));
}
Answers were Sorted based on User's Feedback
Answer / surenda pal singh chouhan
4..2
Explanation:
the second pointer is of char type and not a
far pointer
| Is This Answer Correct ? | 94 Yes | 11 No |
Answer / 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 |
Answer / basha
syntax error before '*' token
error: `farther' undeclared (first use in this function)
error: `farthest' undeclared (first use in this function)
I am getting these types of errors how u get 4 and 2 i
didn't understood
| Is This Answer Correct ? | 15 Yes | 30 No |
void main() { int a=1; while(a++<=1) while(a++<=2); }
What is mean by Data Driven framework in QTP? Can any one answer me in details on this regard.
what is c
Can a variable be both constant and volatile?
Explain zero based addressing.
Hierarchy decides which operator a) is most important b) is used first c) is fastest d) operates on largest numbers
what is the output of below int n=10; (n++)++; printf("%d",n);
using for loop sum 2 number of any 4 digit number in c language
What is define directive?
What is the difference between typeof(foo) and myFoo.GetType()?
Why do u use # before include in a C Progam?
What is the modulus operator?