what is difference between c and c++

Answer Posted / vantees

C
1)Structured programing.
2)In build functions are used to allocate the memory dynamically.
3)Struct members are public by default.
4)Data and functions are separated.

C++
1)Object oriented programing.
2)New ,Delete operators are used to allocate the memory dynamically
3)class members are private by default.
4)Together data and functions into single entity.

Is This Answer Correct ?    9 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How does sizeof know array size?

629


Here is a neat trick for checking whether two strings are equal

566


what is the difference between class and unio?

1861


Write a code to determine the total number of stops an elevator would take to serve N number of people.

728


What is the significance of an algorithm to C programming?

596






What is main function in c?

551


I have a varargs function which accepts a float parameter?

579


What does the error message "DGROUP exceeds 64K" mean?

727


What is a program?

665


Write a c program to demonstrate character and string constants?

1684


How to Throw some light on the splay trees?

621


how do you programme Carrier Sense Multiple Access

1518


What is the package for freshers(Non IIT) in amazon(hyderabad). And what is the same for those who are a contract employee.

3731


What is the use of a static variable in c?

594


Can static variables be declared in a header file?

618