Doubt doubt doubt

If the total number of columns are 10 and i store only five character then the remaining blocks would contain garbage character???

And whats is the purpose of ‘/0’ ???
How to use it??

hello @parth_tyagi

yeah , if u dont fill them , it will have garbage value.

\0 tells where the string terminates.
so use \0 to terminate ur string

Do i need an extra block for ‘/0’ ???

yes
.



Do i need an extra block for ‘/0’ ??? And what is stored in that block ??

\0




I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.