notes/education/software development/ECE1400/Chapter 2 Exercises.md

26 lines
483 B
Markdown
Raw Normal View History

2024-09-07 19:12:12 +00:00
# \#2
Directives:
```c
#include <stdio.h>
```
Statements:
```c
2024-09-07 19:15:57 +00:00
printf("Parkinson's Law: \nWork expands so as to ");
printf("fill the time\n");
printf("available for its completion.\n");
return 0;
```
Output:
```
Parkinson's Law:
Work expands so as to fill the time
available for its completion.
```
# \#5
(A): `100_bottles` is not a legal C identifier because C identifiers cannot start with a number.
2024-09-07 19:12:12 +00:00
2024-09-07 19:15:57 +00:00
# \#6
Double underscores are typically used to denote statements reserve