what is the main difference between c and c++?

Answer Posted / krushna priya nath

A function can be declared in C as int fun();. This means
that fun()is a function without any argument or any number
of arguments.But in C++, this means that the function with
no argument at all.

Is This Answer Correct ?    613 Yes 267 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

2. Give the different notations for the class.\

1586


Do you know about multiple inheritance?

637


How do you achieve polymorphism?

611


What is polymorphism programming?

601


What is multilevel inheritance?

723






What is the example of polymorphism?

554


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.

693


What exactly is polymorphism?

602


What are the types of abstraction?

553


Write a program to sort the number with different sorts in one program ??

1914


What is a function in oop?

629


What is meant by oops concept?

608


What is inheritance in oop?

597


Get me an image implementation program.

1557


Why is destructor used?

581