Char array variations
Learning character array variations and need for null terminator
Learning Objectives
- Concept of character arrays.
- Character array initialisation.
- Anomalies of character array initialisation.
- Concept of null terminated strings, also called the c-style strings.
- Behaviour of cout in printing null terminated and non-null terminated character arrays.
- Cases where compiler automatically puts null character at the end of character arrays.