#1
3rd April 2011, 12:36 AM
|
|||
|
|||
Difference between C++ and programming C?
what is different between C++ and programming c
Please reply |
#2
3rd April 2011, 03:49 AM
|
|||
|
|||
Re: Difference between C++ and programming C?
Hi
This is really a good question in which most are confused . C++ is a procedure oriented language while C is function oriented language. C++ follows bottom up approach while C follows top down approach. These two are the most important and basic difference between the C and C++. |
#3
3rd April 2011, 10:03 AM
|
|||
|
|||
Re: Difference between C++ and programming C?
c is the high level language,c++ comes under basics of c
|
#4
3rd April 2011, 03:43 PM
|
|||
|
|||
Re: Difference between C++ and programming C?
the concept between the c and c++ is not much differing.more functions are used in c++ programing and the coding(key words) to write the c++ program is different from c. functions, overloading,class are some of the features in c++ which are not there in c programing.more complex program are done in c++ which is to be difficult and would not get executed as we wish.
|
#5
3rd April 2011, 04:00 PM
|
|||
|
|||
Re: Difference between C++ and programming C?
there is not much difference between c and c++.
C programming :: 1.C is not object oriented its a procedural programming language.we can not create classes in C. 2.C we use scanf function for input number and printf to display number 3.C is top to bottom programing approach. 4. In C, there is only "EARLY BINDING" 5.C is not required access specifiers C++ programming:: 1.C++ is object oriented .we can create classes in C++. 2.to display we use cout<< and to input a number we use cin>> 3. c++ is bottom to top approach 4. c++ there are "EARLY BINDING & LATE BINDING". 5.c++ is required acces specifiers |
#6
3rd April 2011, 04:37 PM
|
|||
|
|||
Re: Difference between C++ and programming C?
C++ is object oriented programming, c is a procedural programming
What is object oriented programming? In object oriented programming, the programmer can solve problems by breaking them down into real-life objects (it presented the programmer with an opportunity to mirror real life). What is an object? Consider the category of cars. All cars have some common features (for example all cars have four wheels, an engine, some body colour, seats etc.). Are all cars the same? Of course not. A Fiat and a Ford aren’t the same but they are called as cars in general. In this example cars will form a class and Ford (or Fiat) will be an object. Basically C++ includes everything present in C |
#7
3rd April 2011, 06:11 PM
|
|||
|
|||
Re: Difference between C++ and programming C?
Difference Between C++ and C programing Actually C is the procedural programing language which can not 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 the object oriented programming language which eliminate some pitfall of conventional or procedural programing language. It is a concept or approach for designing a new software. It is nothing to do with any programing language although a programing language which support the OOPS concept to make it easier to impliment. Regards ~Mukul~ |
#8
3rd April 2011, 08:22 PM
|
|||
|
|||
Re: Difference between C++ and programming C?
Hi friend,
Both c program and c++ are the basic programming languages. c program is the improved version of a program called b program. c++ is the improved version of c program. if you want to learn c++ successfully first read c program clearly. ALL THE BEST |
#9
3rd April 2011, 09:44 PM
|
|||
|
|||
Re: Difference between C++ and programming C?
History of C Language
The C programming language was designed by Dennies Ritchie in the early 1970s at Bell Laboratories. It was first used system implementation language for the nascent Unix operating system. The main reason to devised C was to overcome the limitations of B. It was Derived from the type-less language BCPL ((Basic Combined Programming Language). C was was the evolution of B and BCPL by incorporating type checking. It was originally intended for use in writing compilers for other languages. History of C++ C++ was devised by Bjarne Stroustrup in 1983 at Bell Laboratories. It is an extension of C by adding some enhancements to C language. Bjarne combined the simula's(a language designed for making simulations, created by Ole-Johan Dahl and Kristen Nygaard) features of object oriented and the efficiency of C. The new features added to language are templates, namespaces, exception handling and use of standary library. 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. C was the C++ predecessor. As it's name implies, alot of C remains in C++. Although not actually being more powerful than C, C++ allows the programmer to more easily manage and operate with Objects, using an OOP (Object Oriented Programming) concept. C++ allows the programmer to create classes, which are somewhat similar to C structures. However, to a class can be assigned methods, functions associated to it, of various prototypes, which can access and operate within the class, somewhat like C functions often operate on a supplied handler pointer. Although it is possible to implement anything which C++ could implement in C, C++ aids to standarize a way in which objects are created and managed, whereas the C programmer who implements the same system has alot of liberty on how to actually implement the internals, and style among programmers will vary alot on the design choices made. In C, some will prefer the handler-type, where a main function initializes a handler, and that handler can be supplied to other functions of the library as an object to operate on/through. Others will even want to have that handler link all the related function pointers within it which then must be called using a convention closer to C++. C++ applications are generally slower at runtime, and are much slower to compile than C programs. The low-level infrastructure for C++ binary execution is also larger. For these reasons C is always commonly used even if C++ has alot of popularity, and will probably continue to be used in projects where size and speed are primary concerns, and portable code still required (assembly would be unsuitable then). 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. Here are the 10 major differences between C++ & C… 1. C follows the procedural programming paradigm while C++ is a multi-paradigm language(procedural as well as object oriented) In case of C, importance is given to the steps or procedure of the program while C++ focuses on the data rather than the process. Also, it is easier to implement/edit the code in case of C++ for the same reason. 2. In case of C, the data is not secured while the data is secured(hidden) in C++ This difference is due to specific OOP features like Data Hiding which are not present in C. 3. C is a low-level language while C++ is a middle-level language C is regarded as a low-level language(difficult interpretation & less user friendly) while C++ has features of both low-level(concentration on whats going on in the machine hardware) & high-level languages(concentration on the program itself) & hence is regarded as a middle-level language. 4. C uses the top-down approach while C++ uses the bottom-up approach In case of C, the program is formulated step by step, each step is processed into detail while in C++, the base elements are first formulated which then are linked together to give rise to larger systems. 5. C is function-driven while C++ is object-driven Functions are the building blocks of a C program while objects are building blocks of a C++ program. 6. C++ supports function overloading while C does not Overloading means two functions having the same name in the same program. This can be done only in C++ with the help of Polymorphism(an OOP feature) 7. We can use functions inside structures in C++ but not in C. In case of C++, functions can be used inside a structure while structures cannot contain functions in C. 8. The NAMESPACE feature in C++ is absent in case of C C++ uses NAMESPACE which avoid name collisions. For instance, two students enrolled in the same university cannot have the same roll number while two students in different universities might have the same roll number. The universities are two different namespace & hence contain the same roll number(identifier) but the same university(one namespace) cannot have two students with the same roll number(identifier) 9. The standard input & output functions differ in the two languages C uses scanf & printf while C++ uses cin>> & cout<< as their respective input & output functions 10. C++ allows the use of reference variables while C does not Reference variables allow two variable names to point to the same memory location. We cannot use these variables in C programming. |
#10
3rd April 2011, 09:49 PM
|
|||
|
|||
Re: Difference between C++ and programming C?
There are only slight differences in between the two programming languages
but the the syntaxes for both the languages are similar the library files in C++ are more advanced than in the C the same Bell labrotories which created C ..also developed the same C for further advanced applications and named as C++ the edit window for both C++ and C will be different to look the graphics used in C++ are very much advanced and best worked in window operating systems from xp/vista/7 but C is best with windows dos operating system these are the basic differences between the two programming languages best regards ~aditya~ |
#12
10th July 2011, 06:06 PM
|
|||
|
|||
Re: Difference between C++ and programming C?
http://www.jmjcse.blogsport.com/
c is procedural oriented and c++is via oop, in c local declaration can be given under main() but in c++ constructors are required for declaration, in c we have top to down approach and in c++ we have bottom to up approach, in c main header file is stdio.h in c++ it is iostream.h, extension in c is (.c) & in c++ is (.cpp), format specifier is required in c but not required in c++ |
#13
31st August 2011, 04:48 AM
|
|||
|
|||
Re: Difference between C++ and programming C?
Both programming language are similar.There is only a minor difference between voth of them.The language which is introduced first is C language.Its the basic language.So any computer enginner have to good command on C language.Many questions are peresent in interview related with c language.
C language is the basic language.It is a stuctured language.C language pointer.C language programming is hard as compare to other laguage.Its a platform dependent language.So that the executable code cant run in other operating system. The other language is C++ language which is the advance version of C language.Its a object oriented language.Its the main difference between both of them.C++ language is also platform dependent language so that th executable code cant run on other operating system. I hope you get my answer. |
#14
3rd September 2011, 03:56 AM
|
|||
|
|||
Re: Difference between C++ and programming C?
C:
it is a procedural structure it does not uses classes it does not contains classes it does not contains concept of inheritance C++: it is a object oriented structure it does uses classes it does contains classes it does contains concept of inheritance |
Related Topics: |
||
Thread | Replies | Last Post |
Should i go for a job in WIPRO or specialize in a language? | 7 | 12th February 2014 01:53 PM |
What other courses can I do after BCA related to programming language? | 16 | 19th June 2013 02:08 PM |
|