Question
#include<stdio.h>
int main()
{
char huge *near *far *ptr1;
char near *far *huge *ptr2;
char far *huge *near *ptr3;
printf("%d, %d, %d\n", sizeof(ptr1), sizeof(ptr2), sizeof(ptr3));
return 0;
}
a.
4, 4, 8
b.
2, 4, 4
c.
4, 4, 2
d.
2, 4, 8
Posted under C Programming
Engage with the Community - Add Your Comment
Confused About the Answer? Ask for Details Here.
Know the Explanation? Add it Here.
Q. What will be the output of the program (in Turbo C under DOS)?
Similar Questions
Discover Related MCQs
Q. An external variable
View solution
Q. The declaration "unsigned u" indicates u is a/an
View solution
Q. A declaration "short int" is used for variables
View solution
Q. Which of the following 'C' type is not a primitive data structure?
View solution
Q. Printing a character as an integer
View solution
Q. The program fragment
int i = 263 ;
putchar (i) ;
prints
View solution
Q. int i = 5; is a statement in a C program.
View solution
Q. If the declaration unsigned c:5; is replaced by
unsigned : 6;
then
View solution
Q. The value of ab if ab & 0 x 3f equals 0 x 27 is
View solution
Q. In C programming language, if the first and the second operands of operator + are of types int and float, respectively, the result will be of type
View solution
Q. C programming language provides operations which deal directly with objects such as
View solution
Q. C programming language by itself provides
View solution
Q. The variables which can be accessed by all modules in a program, are called
View solution
Q. The rule for implicit type conversion in 'C' is
View solution
Q. Consider the following statement:
#define hypotenuse (a, b) sqrt (a*a + b*b);
The macro-call hypotenuse (a + 2, b + 3);
View solution
Q. A static variable
View solution
Q. The statement
# include < math.h>
is written at the top of a program to indicate
View solution
Q. The declarations
typedef float hight [100];
height men, women;
View solution
Q. In case of ordinary int variables
View solution
Q. If a is an unsigned integer variable whose value is hx6db7, what is the value of -a?
View solution
Suggested Topics
Are you eager to expand your knowledge beyond C Programming? We've curated a selection of related categories that you might find intriguing.
Click on the categories below to discover a wealth of MCQs and enrich your understanding of Computer Science. Happy exploring!