In c#, a statement "a?b:c" means?

Answers were Sorted based on User's Feedback



In c#, a statement "a?b:c" means?..

Answer / ram

1.1 In C#, a statement “a ? b : c” means
A) If a is true, returns the value of b, otherwise c
B) If b is true, returns the value of a, otherwise c
C) If a is true, returns the value of c, otherwise b
D) If c is true, returns the value of b, otherwise a

1.2 In C#, a statement “a ?? b” means
A) If a is null and b is null, returns a
B) If a is null, returns a, otherwise returns b
C) If a is null, returns b, otherwise returns a
D) None of the above

Is This Answer Correct ?    11 Yes 4 No

In c#, a statement "a?b:c" means?..

Answer / helper

a = answer b if not null else c

Is This Answer Correct ?    2 Yes 7 No

Post New Answer

More IIT JEE Interview Questions

int x=10,y=6 so guess output of x++/y

2 Answers   Satyam,


WHAT DO U THINK ABOUT INDO-AFGANISTAN RELATIONS?

0 Answers   Infosys,


what is the measuring principle of o2&co

0 Answers  


We need similar questions paper to get prepared for entrance exeam

0 Answers   Toyota,


What are the important dates for JEE Main 2018 Exam?

0 Answers  






sir, i need rrb section engineer(mechanicak) solved paper- 2002 to 2008. my email id ashok_charania@yahoo.co.in

1 Answers  


Hi all, Please mail me the syllabus for KPTCL exam for computers. mail id: is.shek@gmail.com Thanks in advance

1 Answers  


Plz give me the latest syllabus of sbi clerk exam

13 Answers   State Bank Of India SBI,


ARE YU MAD FOR IIT JEE?

1 Answers   IIT,


what if terrorist attack sastra university..will nikil saves the university or not..

0 Answers   Microsoft,


canu sent me IIT entrance question for all subject

0 Answers  


who is the current cheif of army staff

0 Answers  


Categories