What is the difference between struct and class?
Structs are value type whereas Classes are reference type. Structs are stored on the stack whereas Classes are stored on the heap. Value types hold their value in memory where they are declared, but reference type holds a reference to an object memory.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is basic if statement syntax?
Write a C++ program that asks the user to choose a number between 1 and 1000. Then, your program should be able to guess the number by asking the user no more than 10 yes/no questions. Use a while loop in your program
What is size_type?
Can comments be longer than one line?
Is c++ a float?
Which c++ operator cannot overload?
What is the difference between set and map in c++?
How would you stop a class from class from being derived or inherited?The constructer should not be Private,as object instantiation should be allowed.
WHO DEVELOPED C++?
Which one is better- macro or function?
When volatile can be used?
Explain the benefits of proper inheritance.