C program for finding Length of String (Automatic)

#include <stdio.h>
#include <string.h>
int main() 

{
    char str[50];
    scanf("%s", str);

    printf("Length = %d", strlen(str));
}

Comments

Popular posts from this blog

Single Program Using All Automatic String Functions

C program for subtraction of two matrices (2D Arrays)

C program for Multiplication of Two matrices