Can we define function inside main in c++?
No Answer is Posted For this Question
Be the First to Post Answer
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.
Can you please explain the difference between using macro and inline functions?
What are C++ inline functions?
What is a dangling pointer?
Draw a flow chart and write a program for the difference between the sum of elements with odd and even numbers. Two dimensional array.
What is the difference between the functions rand(), random(), srand() and randomize()?
Write a program to interchange 2 variables without using the third one.
Is c++ platform dependent?
Show the declaration for a static member variable.
What are the different types of comments allowed in c++?
What happens if a pointer is deleted twice?
What is scope in c++ with example?