GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Placement Papers  >  IBM  >  Aptitude
Go To First  |  Previous Question  |  Next Question 
 Aptitude  |  Question 100 of 124    Print  
Find the error in the following code
class a{
public:
void operator=(class a);
void operator,(class a);
void operator+(class a);
…..
}


  
Total Answers and Comments: 2 Last Update: November 22, 2007   
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
February 08, 2007 03:22:21   #1  
AZeem        

RE: Find the error in the following codeclass a{
I think this Question is related to Operator Overloading.Acoording to c++ We cannot overload operator . so void operator (class a); is the error.I'm not sure . if i'm wrong please let me know.
 
Is this answer useful? Yes | No
November 22, 2007 09:43:05   #2  
ajay1472        

RE: Find the error in the following codeclass a{
No error because we can overload the comma operator in C++
 
Is this answer useful? Yes | No

 Related Questions

Like 6 cubes are arranged adjacently and given the perimeter and asked to find the perimeter of one cube.

In a class the average age is 16yrs.if the teacher who is 40 yrs of age is also included ,the average becomes 17yrs,how many students were there?

 In a class , except 18 all are above 50 years. 15 are below 50 years of age. how many people are there a) 30 b) 33 c) 36 d) none of these.

Latest Answer : it is 1((1+2)/2,2) = 1(1.5,2) so ans is (1.5,2) ...

Two computers each produced 48000 public utility bills in a day. One computer printed bills at the rate of 9600 an hour and the other at the rate of 7800 an hour. When the first computer finished its run, how many bills did the other computer still have to print?
9000  

y(y-1)(y-2)…….(x+1) 
Latest Answer : y(y-1)(y-2)..(x+1)x(x-1)..1 / x(x-1)(x-2)..1= y(y-1)(y-2)..(x+1) ...

In a class average age of boys is 15 yrs and that of girls is 16 yrs. The total average being 15.6 yrs. Find the ratio of boys to girls
3:2 

Latest Answer : the answer is 2A0F ...

Class xx{int getage();private:int itsage;};which is not useful..A. getage() is privateB. itsage is privateC. itsage is int
A. 

Latest Answer : it will print of the main() until stack is overflow ...


 Sponsored Links

 
Related Articles

jQuery Table Row Finished Code

jQuery Table Row Finished Code The Finished Code Our second example page has demonstrated table row striping highlighting tooltips collapsing expanding and filtering Taken together the JavaScript code for this page is mosgoogle geshibot lang php" document ready function var highlighted
 

jQuery Interacting with Other Code

jQuery Interacting with Other Code We learned with our sorting and paging code that we can t treat the various features we write as islands The behaviors we build can interact in sometimes surprising ways; for this reason it is worth revisiting our earlier efforts to examine how they coexist with t
 

jQuery Completed sorting and paging code

Learning jQuery The Finished Code The completed sorting and paging code in its entirety follows mosgoogle geshibot lang php" fn alternateRowColors function tbody tr odd this removeClass even addClass odd ; tbody tr even this removeClass odd addClass even ; return this; ; document
 

C++ Dereference Operator

C Dereference Operator In this C tutorial you will learn how to access the value of variables pointed by the pointer variables using pointer concept discussed in detail mosgoogle center It is possible to access the value of variables pointed by the pointer variables using pointer This is performed
 

C++ Void Pointer and Null Pointer

C Void Pointer and Null Pointer In this C tutorial you will learn about two interesting types of pointers; void pointers and Null Pointer These pointers will be discussed in conjunction with syntax usage and example mosgoogle center Pointer to Void General Syntax void pointer variable; Void is use
 

C++ Pure Virtual Function and Base Class

C Pure Virtual Function and Virtual Base Class In this C tutorial you will learn about pure virtual function declaration of pure virtual function and virtual base class virtual base class and how to implement a virtual base class explained with examples mosgoogle center What is Pure Virtual Function
 

C++ Operator Overloading Part II

C Operator Overloading Part II Operator overloading is a very important aspect of object oriented programming Binary operators can be overloaded in a similar manner as unary operators In this C tutorial you will learn about Binary Operating Overloading explained along with syntax and example mosgoog
 

How to Access C++ Class Members

How to Access C Class Members In this C tutorial you will learn how to access Class members dot operator or class member access operator difference between struct and class and  scope resolution operator mosgoogle center It is possible to access the class members after a class is defined an
 

sizeof Operator

What is sizeof operator? sizeof will return the number of bytes reserved for a variable or data type. The sizeof operator is a compile-time operator that returns an integer value. In other words since sizeof is a compile time operator, when used in a expression, it does not get compiled into executa
 

Modulus Operator

What is the functionality and restrictions of Modulus Operator? When a division is performed, the remainder of the operation is given by modulus operator. The modulus operator is denoted in c by symbol %. For instance we have two integer values x and y, the operation x % y called as x modulus y give
 

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