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 |
What is the size of pointer ? Also size of pointer in 64 bit pointer
What are the various compound assignment operators in c++?
What is a catch statement?
What is the C-style character string?
What can I safely assume about the initial values of variables which are not explicitly initialized?
What is the difference between the functions rand(), random(), srand() and randomize()?
How to allocate memory dynamically for a reference?
Does improper inheritance have a potential to wreck a project?
check whether a no is prime or not.
What is the difference between function overloading and operator overloading?
What is #include sstream?
write a c++ program that gives output 1 1 2 1 2 3 1 2 3 4 1 2 3 4 5 using looping statement