Question: Which code segment is the same as the following code secment ? int m = 4 0 , n = 2 0 ; if (
Which code segment is the same as the following code secment
int m n ;
if m n
printfm is greater than n
;
else ifm n
printfm is less than n
;
else
printfm is equal to n
;
if m n
printfm is greater than n
;
if m n
printfm is less than n
;
else
printfm is equal to n
;
char str;
strcpystrm nm is greater than n :
m nm is less than n :
m is equal to n;
printfs
str;
if m n
printfm is greater than n
;
else ifm n
printfm is less than n
;
else
printfm is equal to n
;
strcpystrm nm nm is less than n : m is greater than n :
m is equal to n;
printfs
str;
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
