#include<stdio.h> main() { char array[100], *pointer; int length = 0; printf("Enter a string\n"); gets(array); pointer = array; while(*(pointer+length)) length++; printf("Length of entered string = %d\n",length); return 0; }
Hay friends .. AREA OF LANGUAGE IS TOO WIDE BUT NOW APPROXIMATE THEORY AND "C PROGRAMING CODES" ARE AVAILABLE . GOPAL KRISHNA "CHAUHAN"
Thursday, 20 September 2012
C program to find string length without strlen
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment