What is the benefit of encapsulation?
No Answer is Posted For this Question
Be the First to Post Answer
Shall we use 'free' to free memory assigned by new, What are the further consequences??
if int1 has the value 12, int has the value 18, and int3 has the value 21, what is the result: int1 < int2 && int2 < int 3
What is an opaque pointer?
Why we use #include conio h in c++?
How can you create a virtual copy constructor?
class Foo { public: Foo(int i) { } }; class Bar : virtual Foo { public: Bar() { } }; Bar b; Referring to the above code, when the object 'b' is defined, a compiler error will occur. What action fixes the compiler error? a) Adding a virtual destructor to the class Bar b) Adding a constructor to Bar which takes an int parameter c) Adding "Foo()" to the Bar constructor d) Adding a copy constructor to the class Foo e) Adding "Foo(0)" to the Bar::Bar initializer list
why is iostream::eof inside a loop condition considered wrong?
What is the use of "new" operator?
Can a function take variable length arguments, if yes, how?
Which format specifier is used for printing a pointer value?
What is the best c c++ compiler for windows?
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.