# Tutorial 6
---
## Content
* Characters
* Arguments
* Strings
---
### Code Review
- Rory
- Leighton
- Bennett
- Sander
What to look for in a code review:
- Purpose
- Implementation
- Legibility and Style
---
### Code Review: Who's next?
2 pairs each week for the next 6 weeks
- Ellis
- Angela
- William
- Morris
---

---
## Strings
What will happen when the above program is compiled and executed?
```c=
#include <stdio.h>
int main(void) {
char str[10];
str[0] = 'H';
str[1] = 'i';
printf("%s", str);
return 0;
}
```
---
## Strings
How do you correct the program?
```c=
#include <stdio.h>
int main(void) {
char str[10];
str[0] = 'H';
str[1] = 'i';
str[2] = '\0';
printf("%s", str);
return 0;
}
```
---
https://cgi.cse.unsw.edu.au/~cs1511/19T2/tut/06/questions
{"metaMigratedAt":"2023-06-14T17:50:25.218Z","metaMigratedFrom":"Content","title":"Tutorial 6","breaks":true,"contributors":"[{\"id\":\"3a8692fe-89b9-4b4e-824d-00af489f87f1\",\"add\":3094,\"del\":2225}]"}