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

What are called c variables?

1069


Is python a c language?

1020


What is a macro in c preprocessor?

1104


Hi can anyone tell what is a start up code?

2085


How do I read the arrow keys? What about function keys?

1088


What are the two forms of #include directive?

1171


How do you determine whether to use a stream function or a low-level function?

1129


Explain what are its uses in c programming?

1065


Is int a keyword in c?

984


Define VARIABLE?

1172


How can I ensure that integer arithmetic doesnt overflow?

1174


Explain that why C is procedural?

1148


Is sizeof a keyword in c?

974


Explain zero based addressing.

1038


A function can make the value of a variable available to another by a) declaring the variable as global variable b) Passing the variable as a parameter to the second function c) Either of the two methods in (A) and (B) d) binary stream

1177