[Solved] Pointers and addresses?


Accessing an uninitialized variable results in undefined behaviour. It may be that the program simply printed whatever garbage value was previously in that space in memory.

Since C was meant to be a clean and efficient language, it doesn’t automatically fill in a value, it simply allocates an amount of memory. This section of memory retains its previous value until you initialize it as something else.

3

solved Pointers and addresses?