What am I allowed to assume about the initial values of variables which are not explicitly initialized?
Uninitialized variables with "static" duration start out as 0, as if the programmer had initialized them. Variables with "automatic" duration, and dynamically-allocated memory, start out containing garbage (with the exception of calloc).
Hi, Always the best practice is to initialize the variables, otherwise they will take garbage values.i.e the previous or un-attended values which are present in that present memory location. Regards Kolla SanjeevaRao