what is the difference between c and c++?

Answer Posted / sai

c is a procedural language which can't use in real world
applications
c++ is object oriented programming language
by using objects in c++ we can declare classes
we can use encapsulation in c++ but can't use in c
the execution of c++ is faster than c
we use printf scanf in c and cout cin are used in c++
for writing and printing data
we don't require to write header files in c++ instead we
have to write iostream

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why do we use return in c?

655


What is the difference between the expression “++a” and “a++”?

721


Explain what is a 'locale'?

694


What is the difference between constant pointer and constant variable?

842


Explain the properties of union. What is the size of a union variable

812






What is the difference between strcpy() and memcpy() function in c programming?

727


Can you add pointers together? Why would you?

748


What does do in c?

696


Badboy is defined who has ALL the following properties: Does not have a girlfriend and is not married. He is not more than 23 years old. The middle name should be "Singh" The last name should have more than 4 characters. The character 'a' should appear in the last name at least two times. The name of one of his brothers should be "Ram" Write a method: boolean isBadBoy(boolean hasGirlFriend , boolean isMarried, int age , String middleName , String lastName , String[] brotherName); isHaveGirlFriend is true if the person has a girlfriend isMarried is true if the person is married age is the age of the person middleName is the middle name of the person lastName is the last name of the person brotherName is the array of the names of his brothers

1525


Explain what are global variables and explain how do you declare them?

739


Write a program to compute the similarity between two strings - The program should get the two strings as input - Then it will output one single number which is the percentage of similarity between the two strings

2343


Can i use “int” data type to store the value 32768? Why?

866


Is c still relevant?

728


why arguments can generally be passed to functions a) sending the values of the arguments b) sending the addresses of the arguments c) a & b d) none of the above

749


Explain goto?

804