• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 193
  • Last Modified:

if statement

what does this mean again: a ? b: c
  • 3
1 Solution
Mayank SAssociate Director - Product EngineeringCommented:
If a is true then return b else return c
Mayank SAssociate Director - Product EngineeringCommented:
For example, if you have:

int i = x > y ? 5 : 4 ;

If x is greater than y, then 5 will be assigned to 'i', else 4 will be assigned.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now