Find String length without using any built in function

#include
#include

void main() {
    clrscr();
    char s[] = "kartik butani";

    int cout = 0;
    char st;
    do {
        st = s[cout++];
    }while(st != '\0');

    printf("%d",--cout);
    getch();

}

Comments

Popular posts from this blog

How to create a custom form in wordpress

My new Jquery Plugin name is krDailog