Answer Posted / 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 |
Post New Answer View All Answers
Define friend function.
What is a pointer with example?
What is ios class in c++?
Can we use this pointer inside static member function?
What is array give example?
What is #include cstdlib in c++?
What are the differences between malloc() and calloc()?
Which function should be used to free the memory allocated by calloc()?
What is pure virtual function? Or what is abstract class?
Can you write a function similar to printf()?
Is sorted c++?
Ask to write virtual base class code?
Write a program which is required to process the time of a clock in hours and minutes, entered from the keyboard. With this program, there are two requirements for any data entered by a user: 1. The data must be of the correct type (in this case, two ints). 2. The data must be in the correct range: this means that, for the minutes, negative numbers and any number above 59 must be rejected; for the hours, negative numbers and any number above 23 must be rejected. Output error message for invalid data input. Output the time one and a half hour after the time input. i.e. Hour: 22 Min: 32 One and a half hour after 22:32 is 00:02
What do c++ programmers do?
Define a constructor - what it is and how it might be called (2 methods)?