August 2001
Beginner
482 pages
10h 52m
English
| Q1: | What happens if I write to element 25 in a 24-member array? |
| A1: | You will write to other memory, with potentially disastrous effects on your program. |
| Q2: | What is in an uninitialized array element? |
| A2: | An array element that has not been assigned a value. The value is whatever happens to be in memory at a given time. The results of using this member without assigning a value are unpredictable. |
| Q3: | Can I combine arrays? |
| A3: | Yes. With simple arrays you can use pointers to combine them into a new, larger array. With strings you can use some of the built-in functions, such as strcat, to combine strings. |
Read now
Unlock full access