what is the main difference between c and c++?

Answer Posted / anhr computer education

In 'C' header file is optional but in C++ header file is
compulsory and cannot be ignored.

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why is static class not inherited?

806


What is variable example?

779


How do you achieve runtime polymorphism?

732


I have One image (means a group photo ) how to split the faces only from the image?............ please send the answer nagadurgaraju@gmail.com thanks in advace...

1813


officer say me - i am offered to a smoking , then what can you say

1828


#include #include #include #include void insert(char *items, int count); int main(void) { char s[255]; printf("Enter a string:"); gets(s); insert(s, strlen(s)); printf("The sorted string is: %s.\n", s); getch(); return 0; } void insert(char *items, int count) { register int a, b; char t; for(a=1; a < count; ++a) { t = items[a]; for(b=a-1; (b >= 0) && (t < items[b]); b--) items[b+1] = items[b]; items[b+1] = t; } } design an algorithm for Insertion Sort

2355


What is class in oop with example?

815


What is for loop and its syntax?

786


What are different types of JVM's? for example we use dalvik jvm for android then what about the remaining operating systems?

1879


i=20;k=0; for(j=1;k-i;k+=j<10?4:3) { cout<

1629


How is polymorphism achieved?

763


Why is abstraction needed?

748


what type of question are asked in thoughtworks pair programming round ?

1956


What is pointer in oop?

719


Can private class be inherited?

880