GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

GeekInterview.com  >  Interview Questions  >  Concepts  >  OOPS
Go To First  |  Previous Question  |  Next Question 
 OOPS  |  Question 19 of 65    Print  
is it ternary operator in c++?

  
Total Answers and Comments: 6 Last Update: September 27, 2007     Asked by: sathya 
  
 Sponsored Links

 
 Best Rated Answer
Submitted by: Vaibhav
 
?: is a ternary operator and it act as a if else statement for example

a = ( 5>10 ? return 1 : return 0 )

if 5 > 10 then return 1 else return 0.

Vaibz

Above answer was rated as good by the following members:
achintya, rajani_vaddepalli15
July 13, 2006 02:29:58   #1  
madhuri        

RE: is it ternary operator in c++?
pls send me the answer , i think as ternary operator is also a condition we can use
 
Is this answer useful? Yes | No
July 17, 2006 07:54:15   #2  
s.arun        

RE: is it ternary operator in c++?

   

          Yes,the c++ has the ternary operators.

if it is wrong please reply me.


 
Is this answer useful? Yes | No
September 23, 2006 01:29:05   #3  
avinash v bhat(avin)        

see this...

yes the ternary operator in C++ are



? and :



they are used when checking the condition...


 
Is this answer useful? Yes | No
October 09, 2006 05:09:57   #4  
yuvaraj        

RE: is it ternary operator in c++?

i think its a condition operator if its wrong sent me correct ans


 
Is this answer useful? Yes | No
October 14, 2006 01:56:05   #5  
praveen        

RE: is it ternary operator in c++?
near,far,huge pointer please give me the info.
 
Is this answer useful? Yes | No
September 27, 2007 11:24:37   #6  
Vaibhav        

RE: is it ternary operator in c++?
?: is a ternary operator and it act as a if else statement for example

a = ( 5>10 ? return 1 : return 0 )

if 5 > 10 then return 1 else return 0.

Vaibz

 
Is this answer useful? Yes | NoAnswer is useful 2   Answer is not useful 0Overall Rating: +2    


 
Go To Top


 Sponsored Links

 




About Us  |   Privacy Policy  |   Terms and Conditions  |   Contact  |   Site Map  |   Add Question  |   Propose Category  |   RSS Feeds  |   Articles Sitemap  |   Site Updates  |   Add Resource

Copyright © 2005 - 2008 GeekInterview.com. All Rights Reserved
Page copy protected against web site content infringement by Copyscape