ALLInterview.com :: Home Page            
 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                      
tip   To Refer this Site to Your Friends   Click Here
Google
   
 
Categories  >>  Software  >>  Programming Languages  >>  C++  >>  OOPS
 
 


 

 
 STL interview questions  STL Interview Questions
 OOPS interview questions  OOPS Interview Questions
 C++ General interview questions  C++ General Interview Questions
Question

#include <iostream>
using namespace std;
struct wow {
int x;
};
int main() {
wow a;
a.x = 22;
int c = a.x;
int *b = new int;
cout << c;
return 0;
}
option:
	No output
	0
	22
	-(11)
	Will not compile
 Question Submitted By :: Sandeep Kumar Gupta
I also faced this Question!!     Rank Answer Posted By  
 
  Re: #include <iostream> using namespace std; struct wow { int x; }; int main() { wow a; a.x = 22; int c = a.x; int *b = new int; cout << c; return 0; } option: No output 0 22 -(11) Will not compile
Answer
# 1
22 
Is This Answer Correct ?    9 Yes 3 No
Tiger
 

 
 
 
Other OOPS Interview Questions
 
  Question Asked @ Answers
 
Is following functions are said to be overloaded? int add(int a,int b) char *add(int a,int b)  4
what is the function of 'this' operator ? Wipro7
what is the application of oops?  5
difference between overloading and overridding  11
143.what is oops principles?  10
i had specified the access specifier for abstarct class member like (pure virtual function) as private.But it can be accessed by the derived class.How the private member of one class is accessed by other class.if any body face this problem and found the solution plz reply to me. Syntel1
what is diff between .net 1.1 and .net 2.0  4
What is function overloading and operator overloading?  4
how do you handle yourself when you feel the wald is aganist you  2
What is the outcome of the line of code "cout<<abs(- 16.5);"? 1) 16 2) 17 3) 16.5 TCS16
What is namespace?  15
WAP find square root of any number (without using sqrt() )?  3
 
For more OOPS 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 © 2012  ALLInterview.com.  All Rights Reserved.

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