Difference between shift left and shift right?
Answer / devesh kumar patel
in shift left we multiply the no by 2^n and in right shift
we multiply the no by 2^-n (where 'n' is no. of shift)
| Is This Answer Correct ? | 7 Yes | 1 No |
How many ways are there to initialize an int with a constant?
Explain linked list using c++ with an example?
Explain how would you handle a situation where you cannot call the destructor of a local explicitly?
What is c++ w3school?
What does 7/9*9 equal ? a) 1 b) 0.08642 c) 0
Write about the local class and mention its use?
What are the c++ access specifiers?
What is a Default constructor?
What are the benefits of oop in c++?
What is the real purpose of class – to export data?
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.
Is c++ used anymore?