What are integer variable, floating-point variable and character variable?



What are integer variable, floating-point variable and character variable?..

Answer / Santosh Kumar Rena

In C, an integer variable stores whole numbers (positive or negative), and the size depends on the system you're using. Some common types include char (one byte), short int (two bytes), int (four bytes), and long int (eight bytes). A floating-point variable is used to store real numbers with a decimal point, such as float (four bytes) and double (eight bytes). Character variables are used to store characters and are enclosed in single quotes (').

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Interview Questions

Describe explain how arrays can be passed to a user defined function

1 Answers  


what is meant by the "equivalence of pointers and arrays" in C?

3 Answers   Satyam,


where does it flourished?

0 Answers   Microsoft,


What is pass by reference in c?

1 Answers  


How can you convert integers to binary or hexadecimal?

1 Answers  


What is multidimensional arrays

1 Answers  


Why do we use stdio h and conio h?

1 Answers  


Do you know null pointer?

1 Answers  


in multiple branching construct "default" case is a) optional b) compulsarily c) it is not include in this construct d) none of the above

1 Answers  


What is a union?

1 Answers  


what is use of loop?

10 Answers   Infosys,


What is #include conio h?

1 Answers  


Categories