Answers/Solutions to Exercises in Chapter 3, Exercise 4

E4: Storing an int value in memory using a char* pointer can cause all kind of errors. Can storing an int value in a char variable cause the same errors?

A4: No, for the compiler will have inserted a proper code to truncate the value to be stored in the variable and so no overflow can take place.

Back to Answers/Solutions Index                          Back to Answers/Solutions for Chapter 3 Index