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 Virtual functions call up is maintained?
What is the importance of mutable keyword?
Explain rtti.
the first character in the variable name must be an a) special symbol b) number c) alphabet
What is isdigit c++?
What is a protocol class?
Can the operator == be overloaded for comparing two arrays consisting of characters by using string comparison?
Can member data be public?
Explain the ISA and HASA class relationships. How would you implement each in a class design?
Write a single instruction that will store an EVEN random integer between 54 and 212 inclusive in the variable myran. (NOTE only generate EVEN random numbers)
Why do we need templates?
What is the difference between global int and static int declaration?