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 Pure Virtual Function? Why and when it is used ?
What do you mean by call by value and call by reference?
What is the difference between new/delete and malloc/free?
Can we remove an element in a single linked list without traversing? Lets suppose the link list is like this 1 2 3 4 5 6 We need to remove 4 from this list (without traversing from beginning) and the final link list shud be 1 2 3 5 6 only thing we know is the pointer to element "4". How can we remove "4" and link "3" to "5"?
int *p = NULL; printf("%1d",p) ; what will be the output of this above code?
What things would you remember while making an interface?
Why do we need templates?
What do you mean by inheritance in c++?
how can u create a doubly linked list with out using pointers?
What is the difference between strcpy() and strncpy()?
Why pure virtual functions are used if they don't have implementation / When does a pure virtual function become useful?
What is functions syntax in c++?