Offer

Strlen function in C | String Function | Char array in c


Strlen( ) function | String function Example 


Strlen( ) function Example Output 


Copy Text from below 

#include<stdio.h>

#include<conio.h>

#include<string.h>

int main()

{

    char name[20]; //String type var.

    int len;

    printf("Enter your name : ");

    scanf("%s",name);

    len=strlen(name); //Use  strlen() function

    printf("\n Length is : %d",len);


}


Download pdf file : 


For more Program : 


Watch Amazing facts in Hindi 👇


Subscribe our channel for more Cool Facts


Post a Comment

0 Comments