how to find that no is int or float?

Answer Posted / prabhat

if(sizeof(no)==2)
cout<<"Integer";
else if(sizeof(no)==4)
cout<<"Float";

Is This Answer Correct ?    5 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What oops means?

587


Explain what would happen to x in this expression: x += 15; (assuming the value of x is 5)

817


write a program to print data of 5 five students with structures?

1611


why use functions a) writing functions avoids rewriting the same code over and over b) using functions it becomes easier to write programs and keep track of what they are doing c) a & b d) none of the above

656


formula to convert 2500mmh2o into m3/hr

501






What is extern c used for?

571


What is the c value paradox and how is it explained?

578


What does emoji p mean?

608


What are the key features in c programming language?

622


what will be maximum number of comparisons when number of elements are given?

1413


What do you mean by c?

591


How can you access memory located at a certain address?

670


What are pointers in C? Give an example where to illustrate their significance.

754


Differentiate between a for loop and a while loop? What are it uses?

677


What is the purpose of sprintf?

625