Prepare for your Next Interview
|
Welcome to the Geeks Talk forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact contact us. |
This is a discussion on justification for the right to left associativity of conditional operator within the C and C++ forums, part of the Software Development category; Can anyone please tell me the explanation for the right to left associativity of the conditional operator. Associativity means that whenever a choice is to be made amongst the operands ...
|
|||||||
|
|||
|
justification for the right to left associativity of conditional operator
Can anyone please tell me the explanation for the right to left associativity of the conditional operator. Associativity means that whenever a choice is to be made amongst the operands of a conditional operator that side operand is solved first which has no ambiguity. Now if "?:" , this operator has a right to left associativity then why the resulst of this expression is ab. Printf("a")?printf("b")
rintf("c")?printf("d") rintf("e");
|
| Sponsored Links |
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Functions/operator in Informatica to find 'IPxxxx' | JobHelper | Data Warehousing | 0 | 01-11-2007 06:53 AM |
| Conditional Formating in Report | JobHelper | Oracle | 0 | 01-09-2007 02:03 PM |
| Operator Overloading | sripri | C and C++ | 2 | 12-11-2006 10:12 AM |