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...

how to find that no is int or float?

Answer Posted / srv

Using sizeof() operator.


if(sizeof(no)==2)
cout<<"no is int";
else
cout<<"float";

Is This Answer Correct ?    1 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how do you programme Carrier Sense Multiple Access

1969


How can I determine whether a machines byte order is big-endian or little-endian?

1058


Differentiate call by value and call by reference?

964


explain what is an endless loop?

1082


Place the #include statement must be written in the program?

1038


What math functions are available for integers? For floating point?

1136


What is cohesion in c?

983


What is meant by 'bit masking'?

1390


What is #line used for?

1025


What is the purpose of scanf() and printf() functions?

1243


What is the difference between a string copy (strcpy) and a memory copy (memcpy)? When should each be used?

1116


Explain what standard functions are available to manipulate strings?

1076


What is the value of c?

1061


What is difference between union All statement and Union?

1108


What is pointer to pointer in c language?

1143