In what situations do you have to use initialization list rather than assignment in constructors?
No Answer is Posted For this Question
Be the First to Post Answer
What is a local variable?
Which bit wise operator is suitable for turning off a particular bit in a number?
What are the advantages of using friend classes?
What is lambda expression c++?
what do you mean by volatile variable?
How do you initialize a class member, class x { const int i; };
What is the difference between c++ and turbo c++?
What is pointer in c++ with example?
Which compiler does turbo c++ use?
Write a C program to calculate the salary of each employee in your company. You need to input the hours worked and the hourly rate. The company pays 1.5 times the hourly rate for all hours worked in excess of 48 hours. Use the formulas below to calculate the salary: if employee worked less than 48 hours salary = hours * rate; if employee worked more than 48 hours salary = 48.0 * rate + ( hours − 48.0 ) * rate * 1.5; You are required to use a loop to produce the sample output as given below.
Explain stack & heap objects?
What is function overloading c++?