Notice: Constant WP_MEMORY_LIMIT already defined in /home/javawith/public_html/codesjava.com/wp-config.php on line 107

Notice: Constant WP_MAX_MEMORY_LIMIT already defined in /home/javawith/public_html/codesjava.com/wp-config.php on line 108
C strlen() - CodesJava

CodesJava

Easy learning with example program codes

C strlen()


Notice: Undefined variable: footnotelist in /home/javawith/public_html/codesjava.com/wp-content/plugins/latex2html/inc/core.php on line 475

C strlen():

String Functions are the built-in functions provided by C to operate and manipulate a string. C strlen() function returns the length of a string.

Syntax:

strlen (string name)

Example:

#include<stdio.h>  
#include <string.h>  
 
void main()
{    
char str[10] = "Hello C.";  
int b;
b = strlen (str);
printf ("%d\n",b);
}

Output

8
Please follow and like us:
error
Posted in C   








Copyright © 2019 CodesJava DMCA.com Protection Status