what is difference between c and c++

Answer Posted / tapan pal

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 ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

When can you use a pointer with a function?

571


Is c a great language, or what?

605


What does the && operator do in a program code?

698


What is && in c programming?

683


What is sizeof int?

639






Which type of language is c?

654


What is a wrapper function in c?

591


What is array within structure?

588


Is multithreading possible in c?

568


What are categories used for in c?

569


hai iam working in sap sd module for one year and working in lumax ind ltd in desp department but my problem is i have done m.b.a in hr/marketing and working sap sd there is any combination it. can you give right solution of my problem. and what can i do?

1666


What is a newline escape sequence?

666


What are the 32 keywords in c?

637


Where are the auto variables stored?

626


How is a null pointer different from a dangling pointer?

558