String Length Without Library Function

#include<stdio.h>
int main()
{
    int i=0;

    char anik[1000];
    gets(anik);

    while(anik[i] != '\0')
    {
        i++;
    }

    printf("\nString Length : %d\n", i);

    return 0;
}

Comments