The a[ ] character array didn’t give any garbage value without the null termination but s1 gave a garbage value of abcde.
also when i types out my code, it didn’t give in garbage value without the null termination.
i used devC++ as a compiler.
Difference in output
@priyamthakuria27 hey basically woh garbage hi hoti hai value agr ap initialise nhi krte ,ye koi bhi garbage ho skti hai even 0 ,aur jo NULL character hai woh just symbol hai char array ke end ka ,woh print nhi hoga.