vault backup: 2024-09-24 22:01:16
This commit is contained in:
parent
43c58e6145
commit
b5cfe462a3
@ -15,4 +15,19 @@ Output:
|
|||||||
> 2. What output does the following program fragment produce?
|
> 2. What output does the following program fragment produce?
|
||||||
```c
|
```c
|
||||||
i = 9384
|
i = 9384
|
||||||
|
do {
|
||||||
|
printf("%d ", i);
|
||||||
|
i /= 10;
|
||||||
|
} while (i <= 128);
|
||||||
|
```
|
||||||
|
|
||||||
|
Output:
|
||||||
|
```
|
||||||
|
9384 938 93 9
|
||||||
|
```
|
||||||
|
|
||||||
|
> 3. What output does the following `for` statement produce?
|
||||||
|
```c
|
||||||
|
for (i = 5, j = i - 1; i > 0, j > 0; --i, j = i - 1)
|
||||||
|
printf("%d ", i);
|
||||||
```
|
```
|
Loading…
Reference in New Issue
Block a user