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  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
Is there something that we  can do in C and not in C++?
 Question Submitted By :: Guest
I also faced this Question!!     Rank Answer Posted By  
 
  Re: Is there something that we can do in C and not in C++?
Answer
# 1
Theoratically it is being said that we cannot call main
recursively(main caling main) in c++, but practically it can
be done.

whereas in c, we can call main in main.
 
Is This Answer Correct ?    3 Yes 5 No
Guest
 
  Re: Is there something that we can do in C and not in C++?
Answer
# 2
Pointers we can do it in  c but not in c++
 
Is This Answer Correct ?    1 Yes 19 No
Tajudeen
 
 
 
  Re: Is there something that we can do in C and not in C++?
Answer
# 3
we can use printf in c but not in c++
 
Is This Answer Correct ?    3 Yes 16 No
Avni
 
  Re: Is there something that we can do in C and not in C++?
Answer
# 4
there are many concepts that can be used in c++ where c 
cannot support those concepts.
The following are some of those type of concepts:-
 1.function overloading
 2.operator overloading
 3.templates
 4.polymorphism
 5.inheritence
 6.data encapsulation
 7.function over-riding
 8.virtual functions
 9.constructors & destructors
 10. exceptional handling.
 
Is This Answer Correct ?    3 Yes 7 No
Vaishnavi
 
  Re: Is there something that we can do in C and not in C++?
Answer
# 5
nothing
 
Is This Answer Correct ?    2 Yes 6 No
Kiran.raikar
 
  Re: Is there something that we can do in C and not in C++?
Answer
# 6
every C program is execute in C++.
From the above reason we can understand that every thing in
C we have in c++ also.
so Answer is NOTHING
 
Is This Answer Correct ?    0 Yes 3 No
Prathap
 
  Re: Is there something that we can do in C and not in C++?
Answer
# 7
try this one
int *x=malloc(10);
it works in c but not in c++ reason is we will have to 
explicitly cast in c++ to convert a void* to another type 
to work.
 
Is This Answer Correct ?    2 Yes 0 No
Dangling Pointer
 
  Re: Is there something that we can do in C and not in C++?
Answer
# 8
C++ retained all features of C programming in addition of 
object oriented programming that use OBJECT and a CLASS so 
there is nothing that happen in C but not in C++;
 
Is This Answer Correct ?    1 Yes 0 No
Faisal Saifi
 
  Re: Is there something that we can do in C and not in C++?
Answer
# 9
One important difference between c and c++ is that c 
compilers are loosely coupled. So it does not perform type 
checking that much strictly and can allow some conversions 
which otherwise most c++ compilers would not allow.
 
Is This Answer Correct ?    0 Yes 0 No
Achal Ubbott
 

 
 
 
Other C++ General Interview Questions
 
  Question Asked @ Answers
 
What is conversion constructor? TCS2
Can we have "Virtual Constructors"? TCS7
What will happen if I allocate memory using "new" and free it using "free" or allocate sing "calloc" and free it using "delete"?  2
Shall we use 'free' to free memory assigned by new, What are the further consequences?? Symphony4
why we cant create array of refrences  3
what is the size of this class class size { public: char data1; double d; int data2; char data3; double data4; short data5; }; please explain the padding for these double variables.  8
What is the stack? ICICI4
What is Namespace? Samsung3
What is the difference between "calloc" and "malloc"? ADP6
Which one of the following describes characteristics of "protected" inheritance? a) The base class has access only to the public or protected members of the derived class. b) The derived class has non-public, inheritable, access to all but the private members of the base class. c) The derived class has access to all members of the base class. d) The private members of the base class are visible within the derived class. e) Public members of the derived class are privately accessible from the base class. Quark4
What will happen if when say delete this ?  6
What is the difference between reference type and pointers. HCL1
program in c++ to input digits and print in words Microsoft1
Definition of class?  12
What is OOPs CA10
When volatile can be used? Symphony3
Memory is not a constraint. In a single iteration(NOTE: you can't go back), how will you find out the 10th last node/item in a linked list. Goldman-Sachs10
Do we have private destructors? Symphony12
1.what is the difference between software & package &application.  1
difference between c and c++? Infosys22
 
For more C++ General Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

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