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 |
Differentiate between declaration and definition.
What is class definition in c++ ?
What is size of string in c++?
When are exception objects created?
char *ch = "abcde"; char c[4]; how to copy 'ch' to 'c'?
Explain working of printf?
What is a dangling pointer in c++?
How do you flush a buffer in c++?
What are the important differences between c++ and java?
What is ostream in c++?
class basex { int x; public: void setx(int y) {x=y;} }; class derived : basex {}; What is the access level for the member function "setx" in the class "derived" above? a) private b) local c) global d) public e) protected
What are the differences between new and malloc?