+ 4
What is the process ...in this prog..
int num = 5; while (num > 0) { num--; if (num == 3) continue; printf("%d\n", num); }
14 Respuestas
+ 7
num iz 5.
Iz num > 0? YESSSS.
Enter loop.
num-- num iz now 4.
Iz num 3? NOOOO.
Print num. Print 4.
Iz num > 0? YESSSS.
num-- num iz now 3.
Iz num 3? YESSSS.
Continue.
Iz num > 0? YESSSS.
num-- num iz now 2.
Iz num 2? NOOOO.
Print num. Print 2.
Iz num > 0? YESSSS.
num-- num iz now 1.
Iz num 3? NOOOO.
Print num. Print 1.
Iz num > 0? YESSSS.
num-- num iz now 0.
Iz num 3? NOOOO.
Print num. Print 0.
Iz num > 0? NOOOO.
Exit loop.
YAAYY
+ 5
YAAAAAAY
Sorry, had to do that.
+ 4
num-- returns the value of num and then increments num. Since you are not assigning num to anything, there is nothing else on the same line as num--. Nothing happens except for the decrement.
+ 3
oh in this program
u will never get output avoid silly mistakes
+ 2
yash can u pls explain the errors in my code name
use.
+ 2
what's ur doubt...
+ 2
that's according to your code....if i can..then i will...
+ 2
sowmiya hi
+ 2
hello...palak...
+ 1
hlo sowmiya
+ 1
nega coding error clear panuviya
0
num=5 ,then
num-- =5 only na...
how it become 4..
this is what my doubt is..
what is the difference between...
--num &num--??
0
ok frnzz.. sorry i undetstood...
tanq...
0
ya.. now cleared...