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 |
How old is c programming language?
what are the program that using a two dimensional array that list the odd numbers and even numbers separately in a given 10 inputs values
0 Answers College School Exams Tests,
what is the difference between procedure oriented and object oriented progaming language
How to add two numbers without using semicolon at runtime
where do we use volatile keyword?
main() { int i; printf("%d",scanf"%d",&i))//if the input is 12 24 34 then wat will be the output }
How to write a program to receive an integer & find its octal equivalent by using for loop?
which type of question asked from c / c++ in interview.
write a sorting prgm to sort 50 nos and sum them and also remove all the occurrences of 15 and print it?
write a program that types this pattern: 12345678987654321 12345678 87654321 1234567 7654321 123456 654321 12345 54321 1234 4321 123 321 12 21 1 1
simple program of graphics and thier outpu display with a want what is out put of graohics in c language
What does the format %10.2 mean when included in a printf statement?