Answer Posted / harsh
the difference between malloc and new is just that when a
variable is declared using malloc, it requires type casting
while new operator whenever used does not type cast by
itself as there is no need for the variable to be typecasted
when used with new operator
Is This Answer Correct ? | 11 Yes | 0 No |
Post New Answer View All Answers
What do you mean by overloading?
What is class in oop with example?
Whats is abstraction in oops?
What is a null tree?
What are the benefits of interface?
What is polymorphism what is it for and how is it used?
What is encapsulation in oop?
Can we define a class within the interface?
What is interface? When and where is it used?
What is use of overloading?
Whats oop mean?
What is purpose of inheritance?
What does I oop mean?
i=20;k=0;
for(j=1;k-i;k+=j<10?4:3)
{
cout< Question:
Write a program that prints a paycheck. Ask the program user for the name of the
employee, the hourly rate, and the number of hours worked. If the number of hours
exceeds 40, the employee is paid “time and a half”, that is, 150 percent of the hourly
rate on the hours exceeding 40. Be sure to use stepwi se
refine ment and break your solution into several functions. Use the int_name function
to print the dollar amount of the check.