----- Original Message ----- 
From: "Ankit Shah" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Wednesday, July 23, 2008 2:12 AM
Subject: Re: [c-prog] printf


How bout the new-line character??
Correct me if i am wrong...
Ankit M Shah
Ph: 916-832-2950.



----- Original Message ----
From: Raj jyotee DuttaPhookan <[EMAIL PROTECTED]>
To: [email protected]
Sent: Tuesday, July 22, 2008 9:57:52 PM
Subject: Re: [c-prog] printf


As I can count, "Hello world" has 11 characters including the gap between 
"Hello" and "world". But why does it return 12 characters?

    In C there is a null terminated string character. C doesn't have strings 
but a char * indicates pointer to a string. Strelen is returning the value 
of '\0' which is at the end of every string invisibily stored.

Bill

Reply via email to