Question PSC-COND-0013
MediumWhat will be the output of the following pseudocode?
Integer n = -4
Integer r = (n < 0) ? -n : n
Print r
- A.
-4
- B.
8
- C.
Sign up free to see the answer and a step-by-step explanation.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Conditionals question
What will be the output of the following pseudocode?
Integer n = -4
Integer r = (n < 0) ? -n : n
Print r
-4
8
Sign up free to see the answer and a step-by-step explanation.
4
0