the 'sizeof' operator reported a larger size than the calculated size for a structure type. What could be the reason?



the 'sizeof' operator reported a larger size than the calculated size for a structure type..

Answer / Praveen

Far and near pointers were introduced in early versions of C to handle large memory models. Far pointer is used for addressing data beyond the 64KB limit, while near pointer is used for addresses within 64KB.nHowever, with modern systems using flat memory models, far and near pointers are not typically used.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Interview Questions

what is the purpose of the code, and is there any problem with the code? int f( int n, int l, int r ) { return (n << l) >> r; }

2 Answers   Google,


write a program to add two numbers of any size.....(remember any size)

1 Answers  


How can I read a directory in a C program?

2 Answers   Bright Outdoor, Wipro,


Which is better oop or procedural?

1 Answers  


What is integer constants?

1 Answers  


1 1 1 1 2 1 1 3 3 1 1 4 6 4 1

3 Answers  


What is the use of gets and puts?

1 Answers  


what is the basis for selection of arrays or pointers as data structure in a program

1 Answers   TCS,


What is 2c dna?

1 Answers  


What is the sizeof () operator?

1 Answers  


Dear Sir, we are required the bubble sorting programs Regs Prem

1 Answers  


What is the output of below code? main() { static in a=5; printf("%3d",a--); if(a) main(); }

4 Answers   Infosys, TCS,


Categories