| Other C++ General Interview Questions |
|| Asked @
|What are the different operators in C++?
A milk carton can hold 3.78 litres of milk. Each morning, a dairy farm ships cartons of milk to a local grocery store. The cost of producing one litre of milk is $0.38, and the profit of each carton of milk is $0.27. Write a C++ program that prompts the user to enter the total amount of milk produced in the morning. Then display the number of milk cartons needed to hold milk, the cost of producing milk, and the profit for producing milk.
|| ||1 |
|i have given a project to create examination seating plan
system in c++. so can anyone send me the answer of this
|| ||1 |
|write a c++ program that gives output
2 3 4
1 2 3 4 using looping statement
|| ||3 |
|Live example for static function?
|What does '\r' and '\b' mean? Please explain with example.
|| ||6 |
|What is a constructor initializer list and when we use
constructor initializer list?
|What is the difference between Pointer and a Reference?
When you would use them?
|what is object?
|| ||7 |
|You're given an array containing both positive and negative
integers and required to find the sub-array with the largest
sum (O(N) a la KBL). Write a routine in C for the above.
|| ||4 |
|In a class, there is a reference or pointer of an object of
another class embedded, and the memory is either allocated
or assigned to the new object created for this class. In
the constructor, parameters are passed to initialize the
data members and the embedded object reference to get
inialized. What measures or design change should be advised
for proper destruction and avioding memory leaks, getting
pointers dangling for the embedded object memory
allocation? Please suggest.
|Write any small program that will compile in "C" but not in
|| ||4 |
|For more C++ General Interview Questions Click Here |