#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;
}
Placement papers|C,C++,JAVA Programming Tutorials|
PROGRAMMING CONCEPTS Designed by PSD Style © 2011 All Rights Reserved.
0 comments:
Post a Comment