ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage   interview questions urls   External Links  Contact Us     Login  |  Sign Up                      
info       Did you received any Funny E-Mails from your Friends and like to share with rest of our friends? Yeah!! you can post that stuff   HERE
Google
 
Categories  >>  Software  >>  Programming Languages  >>  C++  >>  C++ General
 
 


 

 
 STL interview questions  STL Interview Questions
 OOPS interview questions  OOPS Interview Questions
 C++ General interview questions  C++ General Interview Questions
Question
difference between c and c++?
 Question Submitted By :: Guest
I also faced this Question!!     Rank Answer Posted By  
 
  Re: difference between c and c++?
Answer
# 1
c is procedure oriented language and gives importance to 
procedure that is functions rather than data.c is middle 
level language.
c++ is object oriented language and gives importance to 
object that is data 
c++ is high level language
 
Is This Answer Correct ?    40 Yes 4 No
Asri
 
  Re: difference between c and c++?
Answer
# 2
=>c does not a class/object concept
   =>c++ provides data encapsulation,data  
abstraction,polymorphism.
   =>c++ support all c syntax
   =>in c passing value to a function is "call by value" 
     where c++ its "call by reference"
 
Is This Answer Correct ?    11 Yes 8 No
Mahesh
 
 
 
  Re: difference between c and c++?
Answer
# 3
C is procedure oriented programming & c++ is object 
oriented programming.
c++ contains classes & object,c++ does not require format 
specifier for printing & scanning variables.
 
Is This Answer Correct ?    12 Yes 5 No
Kaustubh Mahajan
 
  Re: difference between c and c++?
Answer
# 4
C++ is the hight level language, but C is low level 
language.

C++ can support of all function of C, but C can't support 
of all function of C++.

We can work with Class in C++, But we can't work with Class 
in C

C++ is a object oriented language but C is not OOPS

C is the Top to bottom , but C++ is bottom to Top language.
 
Is This Answer Correct ?    6 Yes 10 No
Manish Jangid
 
  Re: difference between c and c++?
Answer
# 5
1] c is procedure oriented programing & c++ is object 
oriented programing.
2] we can't do programing through class in c,but we can do 
in c++.
3] c is top to bottom programing approach, c++ is bottom to 
top programing approach.
4] c++ is high level language,c is low level language.
5] c++ accept all the feature & function of of c & its own 
properties,but it is not happened in c.
6] data can move in c openly arround in the system from 
function to function.In c++ data is hidden can't be 
accessed by external function.
 
Is This Answer Correct ?    18 Yes 3 No
Abhisek Pramanik
 
  Re: difference between c and c++?
Answer
# 6
1 C++ OBJECT ORIENTED PROGRAMMING BUT 'C' IS PROCEDURE
ORIENTED PROGRAMMING
2 C++ IS HIGH LEVEL LANGUAGE BUT 'C' IS LOW LEVEL LANGUAGE
3 C++ IS GOING TO BOTTOM TO TOP BUT 'C' IS GOING TO TOP TO 
BOTTOM
 
Is This Answer Correct ?    2 Yes 3 No
Shanky Garg
 

 
 
 
Other C++ General Interview Questions
 
  Question Asked @ Answers
 
What are the basics of classifying different storage types, why? Symphony1
is throwing exception from a constructor not a good practice ? Ericsson4
How many lines of code you have written for a single program? BoA1
Shall we use 'free' to free memory assigned by new, What are the further consequences?? Symphony4
Why do C++ compilers need name mangling? Lucent1
Can you explain the term "resource acquisition is initialization?"  1
What is the difference between "overloading" and "overridding"?  3
Evaluate: int fn(int v) { if(v==1 || v==0) return 1; if(v%2==0) return fn(v/2)+2; else return fn(v-1)+3; } for fn(7); a) 10 b) 11 c) 1 Quark1
how to swap two numbers with out using temp variable  6
class Alpha { public: char data[10000]; Alpha(); ~Alpha(); }; class Beta { public: Beta() { n = 0; } void FillData(Alpha a); private: int n; }; How do you make the above sample code more efficient? a) If possible, make the constructor for Beta private to reduce the overhead of public constructors. b) Change the return type in FillData to int to negate the implicit return conversion from "int" to "void". c) Make the destructor for Alpha virtual. d) Make the constructor for Alpha virtual. e) Pass a const reference to Alpha in FillData Quark1
Do we have private destructors? Symphony9
What is the difference between public, private, protected inheritance? Wipro4
How to avoid changing constant values? Symphony1
what is difference between static and non-static variables  4
Explain the ISA and HASA class relationships. How would you implement each in a class design?  2
In a class, there is a reference or pointer of an object of another class embedded, and the memory is either allocated or assigned to the new object created for this class. In the constructor, parameters are passed to initialize the data members and the embedded object reference to get inialized. What measures or design change should be advised for proper destruction and avioding memory leaks, getting pointers dangling for the embedded object memory allocation? Please suggest. GE3
What is the difference between = and == in C? Intel8
How the V-Table mechanism works? HP3
What are the differences between a struct and a class in C++? Wipro4
what is static function Patni2
 
For more C++ General Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com