CSE220 Unit04 Behavior Quiz
CSE220 Unit04 Behavior Quiz
```
#include <stdio.h>
int main() {
x = x + 1;
printf("%u\n", x);
return 0;
```
A) 0
B) 4294967296
```
#include <stdio.h>
int main() {
float f;
f = 1.0e100;
printf("%f\n", f);
return 0;
```
A) It prints 1.000000
```
#include <stdio.h>
int main() {
char c = 65;
c = c + 1;
printf("%c\n", c);
return 0;
```
A) A
B) B
C) 66
D) Compilation error
```
#include <stdio.h>
int main() {
int i;
i = 1.0e20;
printf("%d\n", i);
return 0;
```
A) It prints 100000000000000000000
B) It prints 0
```
#include <stdio.h>
int main() {
int j = 1000000;
long i;
i = (long)(j * j);
printf("%ld\n", i);
return 0;
```
Will this print the correct square of 1,000,000?
```
#include <stdio.h>
int main() {
int x = -42;
_Bool b = x;
printf("%d\n", b);
return 0;
```
A) 0
B) 1
C) -42
D) Undefined behavior
```
#include <stdio.h>
int main() {
char c = 10000;
float f = 1.0e100;
int i = 1.0e20;
return 0;
```