2 votes

why is initialization of variable is important?

storing a value in an uninitialized variable is the same thing as initializing that variable. a local variable, for example, does not have a default value when it is defined. any value may be in ...
  • 17.4k
1 vote

PSET2 Initiallizing - segmentation fault

You initialize string initial = NULL But in your 2nd for loop, you set n=strlen(initial)

Only top scored, non community-wiki answers of a minimum length are eligible