#1  
11th September 2012, 11:07 PM
Unregistered
Guest
 
Posts: n/a

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, 10:56 AM
sumansin
Senior Member+++++
 
Join Date: Mar 2011
Location: UP
Posts: 4,211
Default 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, 12:18 PM
sandeepsaini.saini522
Senior Member+++++
 
Join Date: May 2012
Location: Hisar
Posts: 4,167
Default 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, 07:04 PM
mustafa tahasildar
Senior Member++
 
Join Date: Aug 2012
Location: SINDHANOOR
Posts: 1,441
Default Re: What is the difference between C and C++?

Quote:
Originally Posted by Unregistered View Post
what are difference between c and c++?..please tel me what is i



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.

Reply With Quote
  #5  
12th September 2012, 08:16 PM
Unregistered
Guest
 
Posts: n/a
Default 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).
Reply With Quote
  #6  
12th September 2012, 10:57 PM
Unregistered
Guest
 
Posts: n/a
Default Re: What is the difference between C and C ?

i want IT branch syllabus for gate preparation or for cse branch entire one means marks alloted everything if possible
Reply With Quote
Do you have any question? or have anything to say?



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 09:42 PM
Karnataka SSLC question papers of last 7 years in 1st language Sanskrit , 2nd language English, 3rd language Kannada? 9 11th October 2013 12: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 03:44 PM



Powered by vBulletin® Version 3.8.3
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0
vBulletin Optimisation by vB Optimise.
Please also check: