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

write a C program:There is a mobile keypad with numbers 0-9 and alphabets on it. Take input 0f 7 keys and then form a word from the alphabets present on the keys.

1 Answers   91mobiles, Amazon, App Guruz, College School Exams Tests, Folio3, Infosys, Omega, Planin, Riphah International University, Subex,


Who is invented by c?

24 Answers   Infosys, Mphasis,


why should i select you?

21 Answers   Wipro,


What is extern variable in c with example?

0 Answers  


write a program to find the largest and second largest integer from an array

2 Answers   Value Labs,






What's the difference between DELETE TABLE and TRUNCATE TABLE commands?

2 Answers   CTC,


what is a NULL Pointer? Whether it is same as an uninitialized pointer?

0 Answers   TISL,


how could explain about job profile

0 Answers  


dynamically allocate memory for linear array of n integers,store some elements in it and find some of them

1 Answers  


which operator is known as dummy operator in c?

2 Answers   Wipro,


Result of the following program is main() { int i=0; for(i=0;i<20;i++) { switch(i) case 0:i+=5; case 1:i+=2; case 5:i+=5; default i+=4; break;} printf("%d,",i); } } a)0,5,9,13,17 b)5,9,13,17 c)12,17,22 d)16,21 e)syntax error

8 Answers   IBM,


Is javascript based on c?

0 Answers  


Categories