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 is a structure and why it is used?

1132


What are the different file extensions involved when programming in C?

1201


What would happen to X in this expression: X += 15; (assuming the value of X is 5)

1881


Explain the use of bit fieild.

1096


what is the role you expect in software industry?

2082


how to write optimum code to divide a 50 digit number with a 25 digit number??

3202


What is a stream water?

1124


hi any body pls give me company name interview conduct "c" language only

2229


What are lookup tables in c?

950


What does %2f mean in c?

1157


What is pointers in c?

1066


what is associativity explain what is the precidence for * and & , * and ++ how the folloing declaration work 1) *&p; 2) *p++;

2364


What is wild pointer in c with example?

1017


Describe static function with its usage?

1151


What are qualifiers in c?

978