Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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

What is thread & process?

15 Answers   Exaband,


How to update windows title bar dynamically?

7 Answers   HCL,


what is functioning of DIalodDataXchange ..?

0 Answers  


What does mfc stand for?

0 Answers  


what is the size of a process

2 Answers   E Logic, IBM,


What is primitive and non-primitive application?

2 Answers   HCL,


What is the difference between Synchronous sockets and asynchronous sockets?

2 Answers  


What is the difference between the SDI and MDI

3 Answers   Invensys,


What interface must be supported by an ActiveX control?

2 Answers  


How you find memory leaks?

4 Answers   ABB,


What is #progma and where it is used?

5 Answers   L&T,


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

2 Answers   Patni,


Categories