What are the different types of variables in C++?



What are the different types of variables in C++?..

Answer / nashiinformaticssolutions

The memory size and arrangement of a variable, the values that can be stored there, and the actions that can be performed on the variable are all determined by the kind of variable. In C++, /* 0some of the primary variable types are:
Char is used to hold single characters.• integers are stored int.
• float: holds values in floating-point format.
• double: doubles the precision of float by storing floating-point numbers.
• void: denotes the lack of a type.
The value stored in a bool is either "true" or "false."

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C++ General Interview Questions

Can comments be longer than one line?

0 Answers  


Which is the best c++ compiler for beginners?

0 Answers  


Can turbo c++ run c program?

0 Answers  


Why do we use double in c++?

0 Answers  


What is a sequence in c++?

0 Answers  


What is time_t c++?

0 Answers  


write a program in c++ to implement stack using functions in header file stack.h

3 Answers   Google, Subex,


What is conversion constructor?

2 Answers   TCS,


what you know about c++?

0 Answers   IBS,


What is a virtual destructor? Explain the use of it?

0 Answers  


What is your strongest programming language (Java, ASP, C, C++, VB, HTML,C#, etc.)?

24 Answers   Infosys, Microsoft, TCS,


Explain the benefits of proper inheritance.

0 Answers  


Categories