Discussion :: Strings - Find Output of Program (Q.No.10)
|Amul Antony Charles said: (Jun 25, 2010)|
|In strlen() it also counts '\0' as a character, so answer would be 6.|
|Ravi said: (Sep 29, 2010)|
|@Amul: No, its implementation like
Where "i" is the length of string "s".
|Praveen said: (Feb 5, 2015)|
|Answer should be 13, as its a string, not collection of character constants, so '\0' counts as 2 characters.|
|Bharani said: (Jun 9, 2016)|
|In String() its don't count '\0'.|
Post your comments here:
Email : (optional)
» Your comments will be displayed only after manual approval.