Computer Science, asked by Angelo6301, 11 months ago

What is the length of null string?
a) 1
b) 0
c) 2
d) 4

Answers

Answered by nisharoy4
5
b(0) is right answer


i hope it's helpful to you

mindcharger: b. 0
nisharoy4: mai bhi to yhi likhi hu
mindcharger: oh yes
Answered by mindfulmaisel
3

Answer:

The length of null string is 0.

Explanation:

The method strlen () always returns the length of the provided string byte but not including the null terminator. The strlen just count the elements till it reaches the null character. And it will stop the counting until it reaches null the character. It will not include it with the length.  

It also does not count the character number in arrays. Strlen (const char* ptr) – this will return the string length by counting the ‘non-zero’ until it reaches the zero.  

Similar questions