#1
12th September 2012, 12:07 AM
|
|||
|
|||
What is the difference between C and C++?
what are difference between c and c++?..please tel me what is i
|
#2
12th September 2012, 11:56 AM
|
|||
|
|||
Re: What is the difference between C and C++?
Difference between C and C++
C and C++ are languages. C is a middle level language because it stands in between High level languge and Low level language.Programs written in C are efficient and fast.It is used in structured programming. C++ is derived from the C language.C++ uses compile-time binding which means that the programmer must specify the specific class of an object.C++ programs are fast and efficient, qualities which helped to make C an extremely popular programming language. |
#3
12th September 2012, 01:18 PM
|
|||
|
|||
Re: What is the difference between C and C++?
hi,
->C is Procedure Oriented Programming Language (POP). ->C++ is Object Oriented Programming Language (OOP). ->C is mostly used to develop system software. ->C++ is mostly used to modal real life problem to program and use to develop application programs. ->C program has extension .C ->C++ program has extension .cpp ->C uses the top-down approach. ->while C++ uses the bottom-up approach. ->C is function-driven. ->while C++ is object-driven. |
#4
12th September 2012, 08:04 PM
|
|||
|
|||
Re: What is the difference between C and C++?
Quote:
THE MAJOR DIFFERENCE BETWEEN C AND C++ ARE AS FALLOWS *In c declaring the global variable several times is allowed but this is not allowed in c++. *After declaring structures and enumerators in c we cannot declare the variable for the structure right after the end of the structure as in c++. *For an int main() in c++ we may not write a return statement but the return is mandatory in c if we are using int main(). *In C++ it having operator overloading and in C it doesn't have. * The C++ is the advance version of C.classes, function overloading and operator overloading. |
#5
12th September 2012, 09:16 PM
|
|||
|
|||
Re: What is the difference between C and C ?
1.C is loosely typed language but not cpp means for example if you want to create a junk of memory on heap,in C we can create like
int *i=malloc(sizeof(4)); byt in cpp we need to type cast that one means int *i=(int *)malloc(sizeof(4)); type enforcement is more efficient in cpp. 2.In cpp we cant call a function with different arguments but in cpp it is possible(FUNCTION OVERLOADING). |
Related Topics: |
||
Thread | Replies | Last Post |
SSLC model question papers for Maths, Physics, Biology, Chemistry, English Language, First Language, Kannada Language, 2nd Language and Hindi? | 55 | 17th July 2014 10:42 PM |
Karnataka SSLC question papers of last 7 years in 1st language Sanskrit , 2nd language English, 3rd language Kannada? | 9 | 11th October 2013 01:36 PM |
How to choose a programming language as my career after B.Tech computer science? Can I earn anything by being an expert in the language? | 21 | 10th February 2012 04:44 PM |
|