vault backup: 2024-09-24 21:56:16
This commit is contained in:
parent
700f36f2ef
commit
43c58e6145
@ -0,0 +1,18 @@
|
|||||||
|
> 1. What output does the following program fragment produce?
|
||||||
|
```c
|
||||||
|
i = 1;
|
||||||
|
while (i <= 128) {
|
||||||
|
printf("%d ", i);
|
||||||
|
i *= 2;
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
Output:
|
||||||
|
```
|
||||||
|
1 2 4 8 16 32 64 128
|
||||||
|
```
|
||||||
|
|
||||||
|
> 2. What output does the following program fragment produce?
|
||||||
|
```c
|
||||||
|
i = 9384
|
||||||
|
```
|
Loading…
Reference in New Issue
Block a user