GeekInterview.com
  I am new, Sign me up!
 

C++ Interview Questions


C++ Interview Questions

Questions: 203
Comments: 914
 Showing Questions 31-40 of 203 Questions
<< Previous 1 2 3 [4] 5 6 7 8 9 10 Next >>
 Sponsored Links

 
 C++ Interview Questions
Sorting Options :  

use of static and friend function in a class 
Latest Answer: The keyword static indicates that the function is part of the class, but does not take the object as the hidden "this" parameter. This is useful for example when you need a custom creation step of the class object [beyond what you can do in ...
Read Answers (1) | Asked by : jithinkm

main(){ int a=2.9; float b=9; cin>>"%d %f">>a>>b; return();}  
Latest Answer: This program will generate a compiler error. The format specification is only required for printf, cout doesnot need the "%d %f" to print the variable values. ...

Hi,Iam very much new to programming and C++please help meI have an application that uses socket++ classes on Unix (AIX) environmentI have included #include in two of my .cpp filesand I have socket++ source 
Latest Answer: hi,Does the environment variable PATH contain the path of the folder in which the header files are present??If not, then either modify the PATH variable, or use -I option to specify the location of header files.eg. cc -I$HEADER_FILES_PATH -o myProgram ...
Read Answers (1) | Asked by : vvadan

How much memory is allocated with the statements below?(i) short* ps = (short*) malloc (100); (ii) short* ps = (short*) new short (100); 
Latest Answer: short* ps = (short*) malloc (100);malloc will allocate 100 bytes and then convert it to short type...short* ps1= (short*) new short (100);this creates a memory of size short and assign the value 100 to *ps1. ...

Which of the following statements about overloading/overriding is FALSE?A. Overloading is a method that allows the definition of multiple member functions with the same name but different signatures.B. 
Latest Answer: D should the wrong.Run time polymorphism is based on overriding (based on virtuval function). ...

If a function takes a pointer to a pointer as a parameter, how would you return a new pointer?A. *lplpValue = pObj;B. lplpValue = pObj;C. **lplpValue = pObj;D. &lplpValue = pObj; 
Latest Answer: *lplpValue = pObj;Dereferencing a double pointer once gives the memory location of the pointer which we need to update. ...

What's the Method Overriding and what's the difference between Method Overloading and Method Overriding. 
Latest Answer: defining a new function with same name but signature is different is known as method oveloading.Define a new function with same name ( as in base class) in derived class is known as method override. In the derived class, base class defined method ...
Read Answers (1) | Asked by : razahaq

this question is related to windows programming using VC++ 
View Question | Asked by : jiyajyoti

Why we would use exception handling rather than different return values to signal an error? 
Latest Answer: Using exceptions, it becomes easy to pass multiple types of values from a single function. Handling the exceptions is hirachical.If we dont have exceptions, it will be difficult to return multiple values from a function. ...
Read Answers (3) | Asked by : langleq9

can access any private member of the base class through the derived class FUNCTION IF IT IS VIRTUAL? 
Latest Answer: No way,Ex:#includeusing namespace std;class base{    private:        int a;    public:        virtual void show()        ...

View page << Previous 1 2 3 [4] 5 6 7 8 9 10 Next >>

Ask A Question
Go Top
 Sponsored Links

 
Sponsored Links

 
Ask Question
You must login to Ask Question or Register your free account

Category:

 
Question Title:


Question in Detail:

Add this to my Subscribed Questions (?)
Send me email when new answer is posted (?)

 
Expert Members
Subscribe
Get Latest Updates Via RSS Reader or by Email
 Forum Discussion Subscribe to Forum Discussions Via E-Mail Latest Forum Discussions Subscribers
 Knowledge Base Subscribe to Knowledge Base Series Via E-Mail Knowledge Base Subscribers
 Learning Series Subscribe to GeekInterview Learning Series Via EMail Learning Series Subscribers
 Freelance Jobs Subscribe to GeekInterview Freelance Jobs Via EMail Latest Freelance Jobs Subscribers
 GeekInterview Blog Subscribe to GeekInterview Blog Via EMail GeekInterview Blog Subscribers
 Testing Interview Questions Subscribe to Testing Interview Questions Via EMail Testing Interview Questions Subscribers
 Oracle Interview Questions Subscribe to Oracle Interview Questions Via EMail Oracle Interview Questions Subscribers
 Java Interview Questions Subscribe to Java Interview Questions Via EMail Java Interview Questions Subscribers
 Latest Placement Papers Subscribe to Latest Placement Papers Placement Papers Subscribers
 Free Training Subscribe to Free Training Via EMail Free Training Subscribers
 Learn AJAX Subscribe to AJAXwith.com Via EMail AJAXwith Subscribers
About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape