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 the syallabus of computer science students in group- 1?

2089


praagnovation

2046


What is define c?

786


find out largest elemant of diagonalmatrix

1901


Is c still relevant?

865


What is header file in c?

856


What is structure in c explain with example?

908


What is the default value of local and global variables in c?

793


Can you please explain the scope of static variables?

819


how to make a scientific calculater ?

1826


When should the volatile modifier be used?

910


What does the && operator do in a program code?

971


Explain how does flowchart help in writing a program?

893


Why is c still so popular?

815


The __________ attribute is used to announce variables based on definitions of columns in a table?

983