what is the main difference between c and c++?
Answers were Sorted based on User's Feedback
Answer / arpit singhal
c is a procedure language when c++ is a oop's based language
c++ is a superset of c.
The most important facility that c++ adds on to c are
classes, inheritance, function overloading and operator
overloading.
In c++ we can make the more secure program rather then c.
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / mohit bhushan singhal
1: In C++, we use <iostream.h> while in C, we use <stdio.h>.
2: C++ is an object oriented programming language and C is
a procedure programming language.
3: in C++, we do not use Algo while in C, we use algo to
make a good program.
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / r.srinath
C++ is object oriented language and c is structure
programming. c - top down approach c++ - bottom up approach
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / sandeep
c contain only 32 keywords
but c++ contain 48 keywords and 15 ansi keywords
| Is This Answer Correct ? | 3 Yes | 1 No |
Answer / senthil
c++ is used to friend function used but c used only the
function.
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / vinomythili
difference between c and c++
c c++
1.procedural oriented 1.object oriented
2.top down approach 2. bottom up approach
3.developed by dennis ritche 3.developed by bjourne
stroustroup
4.malloc and free for allocation 4.new() and delete() for
and deallocation allocation and deallocatio
5.doesn't support operator and 5.it supports both
function overloading
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / lakshit
In c we use <stdio.h> while in c++ we use <iostream.h>......
In c language procedural programing is focussed and in c++
object oriented pograming is focuused ..............
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / harsh
- C++ introduces many features that are not available in C
and in practice almost all code written in C++ is not
conforming C code. This article, however, focuses on
differences that cause conforming C code to be ill-formed
C++ code, or to be conforming/well-formed in both languages
but to behave differently in C and C++.
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / amit kumar
C C++
1. Procedural Programing Object Oriented
2. Donot Support Class & Object Supports
3. Low level language High level language
4. Data Not secured Data Secured
5. Allocation By Malloc New Operator
6. Not provide default argument Provide
7. Main funtion Can't return value Can Return
8. Has no Operator overloading Has Operator overloading
9. Top-Down Approach Bottom-Up
10.Imporance on Algo & Function On Class & Object
| Is This Answer Correct ? | 3 Yes | 1 No |
What is the main purpose of inheritance law?
What is difference between function overloading and overriding?
to remove the repeated numbers from the given . i.e.., if the input is 12233 output should of 123
What is polymorphism explain?
1. Strong name 2. how to prevent a class from being inherited 3. delegates 4. default modifier for interface 5. default modifier for class 6. base class for exception 7. diff bet trigger and view in sql 8. how to exchange values from one page to another page 9. can multiple catch block ll be executed at same time 10. can u store different data types in an array & array list 11. when we ll use trigger 12. try,catch,finally usage
what is the difference between function template and template of function?explain with example.
explain dynamic binding by drowing
what is pointers
pointers are support in C#? if yes then how to use it?
8 Answers Softvision Solution,
What do you mean by overloading?
what is inline function?
How do you use inheritance in unity?