DIFFERNCE BETWEEN THE C++ AND C LANGUAGE?
Answers were Sorted based on User's Feedback
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 |
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 |
the expression a=30*1000+2768; evalutes to a) 32768 b) -32768 c) 113040 d) 0
What is the difference between c and python?
program for following output using for loop? 1 2 3 4 5 2 3 4 5 3 4 5 4 5 5
Which built-in library function can be used to match a patter from the string?
What is structure padding and packing in c?
what is c language?
What is pivot in c?
what is the difference between normal variables and pointer variables..............
15 Answers HP, Infosys, Satyam, Vivekanand Education Society,
Are c and c++ the same?
Eight queens puzzle
What's the best way to declare and define global variables?
Tell me can the size of an array be declared at runtime?