Programming, website development forum Get latest updates by RSS Follow TechnicalTalk on Twitter Follow TechnicalTalk on Facebook 
HomeSearchRecent PostsLoginRegisterContact Us

Username  
Password    
  Forgot your password?  

Pages: 1 [2]   Go Down
 
  Email this topic  |  Print
0 Members and 1 Guest are viewing this topic.

Difference between C and C++

 
webmaster forum
Activity
0%
 
New Poster
Posts: 5
Topics: 1
September 23, 2008, 09:57:58 AM

we all work on both C and C++
but what is the main difference and can anyone tell me what is actually object oriented language!! sad2
« Last Edit: December 13, 2008, 05:44:05 AM by Admin »
 
webmaster forum
mak14317  Offline
Activity
0%
 
Skilled Coder
Real name: Janne
Location: california
Gender: Male
Age: 26
Posts: 108
Topics: 1
WWW
May 02, 2011, 02:15:19 AM

C++, as the name suggests is a superset of C. As a matter of fact, C++ can run most of C code while C cannot run C++ code.

herbal vaporizer
Happy vappy vaporizer
Eclipse Vape
Ivape
 
webmaster forum
Activity
0%
 
New Poster
Posts: 6
Topics: 0
May 03, 2011, 04:48:01 PM

C++ is a object oriented programming language based on C.  C++ was based on C and retains a great deal of the functionality.  C++ does not retain complete source level affinity with C.  There are a few gotchas for C++ programmers trying to write C code, and C programmers trying to compile with a C++ compiler.
 
webmaster forum
Radhaa  Offline
Activity
0%
 
New Poster
Posts: 5
Topics: 0
May 10, 2011, 02:04:40 AM

both C and C++ are programming languages.   C++ is termed as super-set of C.
C is a powerful and elegant language.  almost all c PROGRAMS ARE ALSO c++ PROGRAMS.
in C, it facilitates--" top down structured design" as against C++ provides bottom-up object-oriented design.
the C language is built from functions (like printf)that execute different tasks.

in c++, it is a object-oriented system.   objects are considered to be "a partitioned area of computer memory" that stores data and set of operations that can access that data.
the three most important facilities that c++ adds on to are classes, function overloading and operator overloading.
« Last Edit: May 10, 2011, 08:18:50 PM by Admin »
 
webmaster forum
rijans  Offline
Student of Computer Science
Activity
0%
 
New Poster
Location: Cloud Server
Gender: Male
Posts: 7
Topics: 4
rijans rijans rijans
WWW
May 26, 2011, 08:36:58 AM

I want to give special thanks to pols, monalisa and robin for their valuable messages for explaining difference of c and c++.
 
webmaster forum
3magic  Offline
Activity
0%
 
New Coder
Real name: Pooja Rani
Posts: 16
Topics: 0
WWW
June 22, 2011, 11:18:18 PM

C is probably the most computer programming language used to write professional-level software, though new programs written today are usually done with its object-oriented successor, C + +.  Both are best suited to well-trained programmers with the knowledge, tools, and time to avoid some major pitfalls.
 
webmaster forum
3magic  Offline
Activity
0%
 
New Coder
Real name: Pooja Rani
Posts: 16
Topics: 0
WWW
July 02, 2011, 04:02:32 AM

C follows the procedural programming paradigm while C++ is a multi-paradigm language(procedural as well as object oriented)
.  In case of C, the data is not secured while the data is secured(hidden) in C+
C is a low-level language while C++ is a middle-level language
C uses the top-down approach while C++ uses the bottom-up approach
C is function-driven while C++ is object-driven
« Last Edit: October 22, 2011, 10:37:54 PM by Admin »
 
webmaster forum
john14317  Offline
Activity
0%
 
Skilled Coder
Posts: 149
Topics: 0
July 04, 2011, 05:51:59 AM

i think c and c+ are same

payday loans
instant online cash advance
 
webmaster forum
Activity
0%
 
Regular Coder
Gender: Male
Age: 24
Posts: 60
Topics: 10
July 10, 2011, 10:41:32 PM

Thanks for this information.

Payday loan
 
webmaster forum
Activity
0%
 
Regular Coder
Gender: Male
Age: 24
Posts: 60
Topics: 10
July 15, 2011, 12:55:22 AM

Main Differences between c and c++
1. C follows the procedural programming paradigm while C++ is a multi-paradigm language(procedural as well as object oriented)
2. In case of C, the data is not secured while the data is secured(hidden) in C++
3. C is a low-level language while C++ is a middle-level language
4. C uses the top-down approach while C++ uses the bottom-up approach
5. C++ supports function overloading while C does not

OOP:
A type of programming in which programmers define not only the data type of a data structure, but also the types of operations (functions) that can be applied to the data structure. In this way, the data structure becomes an object that includes both data and functions. In addition, programmers can create relationships between one object and another. For example, objects can inherit characteristics from other objects.

Payday loan
 
webmaster forum
kellylsn  Offline
Activity
0%
 
Professional Coder
Posts: 229
Topics: 7
July 16, 2011, 12:34:26 AM

One major difference of c++ over c is that c is a procedural programming while c++ is the object oriented programming language.

Payday Loan
Online Easy Loans
 
webmaster forum
Activity
0%
 
New Coder
Posts: 15
Topics: 0
July 16, 2011, 03:39:10 AM

C++ was based on C and retains a great deal of the functionality.  C++ does not retain complete source-level compatibility with C.  There are a few gotchas for C++ programmers trying to write C code, and C programmers trying to compile with a C++ compiler.  
 
webmaster forum
dianna  Offline
Activity
0%
 
Regular Coder
Posts: 88
Topics: 10
WWW
July 30, 2011, 12:37:03 AM

Difference between c and c++

C++ is an extension of C language.  This means that you can not only use the new features introduced with C++ but can also use the power and efficiency of C language.  C and C++ are no more language for writing compilers and other languages, these general purpose languages are used worldwide in every field.
Here is a list of differences between c and c++.

The main difference between C and C++ is that C++ is object oriented while C is function or procedure oriented.  Object oriented programming paradigm is focused on writing programs that are more readable and maintainable.  It also helps the reuse of code by packaging a group of similar objects or using the concept of component programming model.   It helps thinking in a logical way by using the concept of real world concepts of objects, inheritance and polymorphism.  It should be noted that there are also some drawbacks of such features.  For example using polymorphism in a program can slow down the performance of that program.

On the other hand, functional and procedural programming focus primarily on the actions and events, and the programming model focuses on the logical assertions that trigger execution of program code.
 

Pakistan's Local Search engine
 
webmaster forum
dianna  Offline
Activity
0%
 
Regular Coder
Posts: 88
Topics: 10
WWW
August 02, 2011, 04:59:17 AM

Difference between c and c++

    1. C does not have any classes or objects. It is procedure and function driven. There is no concept of access through objects and structures are the only place where there is a access through a compacted variable. c++ is object oriented.

    2. C structures have a diferent behaviour compared to c++ structures. Structures in c do not accept functions as their parts.

    3. C input/output is based on library and the prcesses are carried out by including functions. C++ i/o is made through console commands cin and cout.

    4. C functions do not support overloading. Operator overloading is a process in which the same function has two or more different behaviours based on the data input by the user.

    5. C does not support new or delete commands. The memory operations to free or alllocate memory in c are carried out by malloc() and free().

Pakistan's Local Search engine
 
webmaster forum
kellylsn  Offline
Activity
0%
 
Professional Coder
Posts: 229
Topics: 7
August 09, 2011, 04:04:24 AM

The main difference between c and c++ is that c is the procedural language while C++ is the object oriented language.

Payday Loan
Online Easy Loans
 
webmaster forum
netshet  Offline
Activity
0%
 
Regular Coder
Posts: 73
Topics: 2
WWW
August 15, 2011, 12:38:51 AM

    * C does not have any classes or objects. It is procedure and function driven. There is no concept of access through objects and structures are the only place where there is a access through a compacted variable. c++ is object oriented.

    * C structures have a different behaviour compared to c++ structures. Structures in c do not accept functions as their parts.

    * C input/output is based on library and the processes are carried out by including functions. C++ i/o is made through console commands cin and cout.

    * C functions do not support overloading. Operator overloading is a process in which the same function has two or more different behaviours based on the data input by the user.

    * C does not support new or delete commands. The memory operations to free or allocate memory in c are carried out by malloc() and free().

hair transplant
 
webmaster forum
Activity
0%
 
New Poster
Real name: Harry Hyden
Location: Singapore
Gender: Male
Age: 31
Posts: 4
Topics: 0
WWW
September 13, 2011, 02:05:20 AM

In my point of view  C++ identifiers are not allowed to contain two or more consecutive underscores in any position.  C identifiers cannot start with two or more consecutive underscores, but may contain them in other positions.  
 
webmaster forum
Activity
0%
 
New Coder
Real name: Collin wood
Posts: 40
Topics: 2
September 17, 2011, 04:37:48 AM

Basic difference is C & C++
C is programming language which not  have Object oriented Feature. . . . .
C++ having object oriented feature. . . . . .

Web Development Company | Web Design Agency
 
webmaster forum
Activity
0%
 
New Coder
Posts: 41
Topics: 0
WWW
September 21, 2011, 03:31:37 AM

just syntax is different in it

Display Banner | Pull Up Banner
 
webmaster forum
Activity
0%
 
New Coder
Posts: 19
Topics: 4
WWW
September 21, 2011, 05:15:59 AM

C language do not follow the oops concept.  But C++ strictly follows OOPS concepts like Polymorphism, object etc.    

Web Designing
Web-Development
 
webmaster forum
Activity
100%
 
Regular Coder
Posts: 88
Topics: 1
WWW
November 23, 2011, 11:59:53 PM

Simple difference between C and c++.  
C is not an object oriented language.
C++ is a part of oops and best feature is re usability.  We can access our code by using objects.
Instead of stdio. h we use <iostream. h> and at the place of printf we use cout and scanf we use cin.  

Web Design Delhi | Website Design Delhi | Website Design Company Delhi
 
webmaster forum
Activity
100%
 
Regular Coder
Posts: 77
Topics: 0
January 09, 2012, 09:58:32 AM

C++ was based on C and retains a great deal of the functionality. C++ does not retain complete source-level compatibility with C. There are a few gotchas for C++ programmers trying to write C code, and C programmers trying to compile with a C++ compiler.

Yellow Pages of Pakistan
 
webmaster forum
cashcars  Offline
Activity
100%
 
Regular Coder
Posts: 74
Topics: 4
WWW
January 12, 2012, 06:56:05 AM

C++ was based on C and retains a great deal of the functionality.  C++ does not retain complete source-level compatibility with C.  There are a few gotchas for C++ programmers trying to write C code, and C programmers trying to compile with a C++ compiler.  

electrician perth
 
webmaster forum
cashcars  Offline
Activity
100%
 
Regular Coder
Posts: 74
Topics: 4
WWW
January 12, 2012, 06:58:51 AM

C++ was based on C and retains a great deal of the functionality.  C++ does not retain complete source-level compatibility with C.  There are a few gotchas for C++ programmers trying to write C code, and C programmers trying to compile with a C++ compiler.  

electrician perth
 
webmaster forum
cashcars  Offline
Activity
100%
 
Regular Coder
Posts: 74
Topics: 4
WWW
January 12, 2012, 07:00:56 AM

C++ was based on C and retains a great deal of the functionality.  C++ does not retain complete source-level compatibility with C.  There are a few gotchas for C++ programmers trying to write C code, and C programmers trying to compile with a C++ compiler.  

electrician perth
 
webmaster forum
cashcars  Offline
Activity
100%
 
Regular Coder
Posts: 74
Topics: 4
WWW
January 12, 2012, 07:03:01 AM

C++ was based on C and retains a great deal of the functionality.  C++ does not retain complete source-level compatibility with C.  There are a few gotchas for C++ programmers trying to write C code, and C programmers trying to compile with a C++ compiler.  

electrician perth
 
webmaster forum
Activity
100%
 
Regular Coder
Posts: 77
Topics: 0
January 14, 2012, 06:53:28 AM

The main difference between C and C++ is that C++ is object oriented while C is function or procedure oriented. Object oriented programming paradigm is focused on writing programs that are more readable and maintainable. It also helps the reuse of code by packaging a group of similar objects or using the concept of component programming model.  It helps thinking in a logical way by using the concept of real world concepts of objects, inheritance and polymorphism. It should be noted that there are also some drawbacks of such features. For example using polymorphism in a program can slow down the performance of that program.

On the other hand, functional and procedural programming focus primarily on the actions and events, and the programming model focuses on the logical assertions that trigger execution of program code.

Yellow Pages of Pakistan
 
webmaster forum
cashcars  Offline
Activity
100%
 
Regular Coder
Posts: 74
Topics: 4
WWW
January 28, 2012, 01:24:47 AM

C++ is an extension of C language. This means that you can not only use the new features introduced with C++ but can also use the power and efficiency of C language. C and C++ are no more language for writing compilers and other languages, these general purpose languages are used worldwide in every field.
Here is a list of differences between c and c++.

The main difference between C and C++ is that C++ is object oriented while C is function or procedure oriented. Object oriented programming paradigm is focused on writing programs that are more readable and maintainable.

electrician perth
 
webmaster forum
ampulse  Offline
Activity
66.67%
 
New Poster
Posts: 10
Topics: 1
January 31, 2012, 02:30:15 AM

The C and C++ programming languages are closely related.  c is the basic language,c++ is advanced language of c.
 
webmaster forum
raghubodi  Offline
Activity
26.67%
 
New Poster
Posts: 4
Topics: 0
February 06, 2012, 10:24:35 PM

C++, as the name suggests is a superset of C.  As a matter of fact, C++ can run most of C code while C cannot run C++ code.  

Actually c is a procedural programming language which
cann't face the real world problem.  It has some drawback
like a global data is shared by all function and if in a
large program it is find out difficult that which function
uses which data.  

On the other hand c++ is an object oriented programming
language which eliminate some pitfall of conventional or
procedural programming language.  It is a concept or
approach for designing a new software.  It is nothing to do
with any programming language although a programming
language which support the oops concept to make it easier
to implement.

This is the main different between c and c++.

website development services
 
  Email this topic  |  Print
Pages: 1 [2]   Go Up
 
Jump to:  



Powered by SMF 1.1.15 | SMF © 2011, Simple Machines


Google visited last this page February 03, 2012, 03:47:22 PM