DIFFERNCE BETWEEN THE C++ AND C LANGUAGE?

Answers were Sorted based on User's Feedback



DIFFERNCE BETWEEN THE C++ AND C LANGUAGE?..

Answer / vignesh1998i

1) C is structured oriented language and C++ is an object oriented language
2) in C we must finish our decleration in the very next line of void main() , but in Cpp wherever u need a variable storage data , before that instruction we must declare it......
3) In C structures are used , in that only data members can only be declared and member functions not included , but in Cpp inside a class (same as strucutres) both data members as well as member functions can be used..
4) in Structure all the members and strucutre variables are global by default...... but in Cpp by default the data members are private.....


SIMILARITY :
1) both C & C++ uses Overloading concept....... (very important )

thank u

Is This Answer Correct ?    3 Yes 1 No

DIFFERNCE BETWEEN THE C++ AND C LANGUAGE?..

Answer / manish soni tagore collage jai

main deference in c and cpp is



-------------------|-------------------|
c | c++ |
-------------------|-------------------|
top down approach | bottom up approach|
-------------------|-------------------|

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More C Interview Questions

the expression a=30*1000+2768; evalutes to a) 32768 b) -32768 c) 113040 d) 0

1 Answers  


What is the difference between c and python?

0 Answers  


program for following output using for loop? 1 2 3 4 5 2 3 4 5 3 4 5 4 5 5

8 Answers   Infosys,


Which built-in library function can be used to match a patter from the string?

0 Answers  


What is structure padding and packing in c?

0 Answers  


what is c language?

2 Answers  


What is pivot in c?

0 Answers  


what is the difference between normal variables and pointer variables..............

15 Answers   HP, Infosys, Satyam, Vivekanand Education Society,


Are c and c++ the same?

0 Answers  


Eight queens puzzle

0 Answers  


What's the best way to declare and define global variables?

7 Answers  


Tell me can the size of an array be declared at runtime?

0 Answers  


Categories