I can i set size of integer variable should be fixed for
different operating systems(Ex i want integer size is
2bytes in OS)

Answers were Sorted based on User's Feedback



I can i set size of integer variable should be fixed for different operating systems(Ex i want int..

Answer / wizards

we can define with #ifdef's
Ex:
#ifdef OS==WINDOWS
int a:32;
#endif
#ifdef OS==UNIX
int a:64;
#endif

Is This Answer Correct ?    2 Yes 1 No

I can i set size of integer variable should be fixed for different operating systems(Ex i want int..

Answer / vijay visana

one can define integer class
like
class Int {
byte data[2];

public:
//overload all basic operation of integer here
//like + - etc

};

Is This Answer Correct ?    1 Yes 3 No

Post New Answer

More MFC Interview Questions

List out the parameters of WinMain Function.

2 Answers   Mphasis,


What is LPCTSTR? What does LP denote it?

4 Answers  


What does mfc stand for?

0 Answers  


if no message handler is available for a message then will deal with the message ? does window proving any default mechanism?

2 Answers   Patni,


What is the difference between the SDI and MDI

3 Answers   Invensys,


How we can findout Memoryleaks, In what way it can be avoided

6 Answers   Infosys,


how do u identify RTTI in vc++

4 Answers   Siemens,


How to find the mouse entering an image?..while entering need to display next image...

4 Answers  


How do I create a dialog box in mfc?

0 Answers  


what is the meaning of constant FILE EXCEEDS LENGTH LIMIT while loading from ps file to vsam in the jcl?

0 Answers  


plzz tell me what we can do and dont in tally ERP & sap business one?

0 Answers  


How to setup a timer?

3 Answers   IBM,


Categories