What is the output of the code corresponding to the following code? (a) int X= -5; if (X> 0) printf("%d",X); if (!((X=0) && (X<0))) printf(%d", X+5); -5 10 Previous O O 0 0

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter5: Control Structures Ii (repetition)
Section: Chapter Questions
Problem 8SA
icon
Related questions
Question
Language is C
What is the output of the code corresponding to the following code?
(a)
int X -5;
if (X> 0)
printf("%d",X);
if (!((X=0) && (X<0)))
printf(%d", X+5);
-5
10
0.
Previous
Transcribed Image Text:What is the output of the code corresponding to the following code? (a) int X -5; if (X> 0) printf("%d",X); if (!((X=0) && (X<0))) printf(%d", X+5); -5 10 0. Previous
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT