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 |
How can a '::' operator be used as unary operator?
How do I run c++?
why the size of an empty class is 1
In a function declaration what does extern means?
What is constructor c++?
Explain unexpected() function?
What is heap sort in c++?
Does c++ support exception handling?
Describe protected access specifiers?
What is a namespace in c++?
Write about the access privileges in c++ and also mention about its default access level?
What are the two types of comments?