Science, asked by hastag35, 23 days ago

what is the importance of Null character in strings?​

Answers

Answered by Alone023
38

Most string-manipulating functions relies on NULL to know when the string is finished (and its job is done), and won't work with simple char-array (eg. they'll keep on working past the boundaries of the array, and continue until it finds a NULL somewhere in memory - often corrupting memory as it goes).

Answered by rohithkrhoypuc1
2

C strings are just a sequence of charecters accessed viua a pointer to the first charecter .There is no spacein a pointer to the store the length so u need some indication of where the ending of the string is .In C it was dedicated that this would be indicated by null character.

Hope it helps u mate

Mark it as BRAINLIEAST please i request

Similar questions