Saturday 15 August 2009

c strlen



strlen is function of c which has been defined inside the library string.h. Prototype of strlen function is: size_t strlen(const char * str); Explanation of prototype: Return type: Return type of strlen function is number of character in the str excluding null character. Example:(1)What will be output if you will execute following c code? #include "string.h"void main(){ size_t t; t=

No comments:

Post a Comment