#include<stdio.h>
#include<string.h>
#include<ctype.h>
//#include<conio.h>
void main() {
int strlength;
char str[100];
//clrscr();
printf("\nEnter the string: ");
gets(str);
strlength = strlen(str);
printf("\nThe length of the string is %d.", strlength);
//getch();
}
Note: Remove the comment line when you are use Turbo C IDE for run your program.
Monday, 5 October 2015
Find length of string using strlen( ) function
Labels:
C,
GTU Practical
Subscribe to:
Post Comments (Atom)
smm panel
ReplyDeleteSmm panel
iş ilanları
İnstagram takipçi satın al
hirdavatciburada.com
beyazesyateknikservisi.com.tr
servis
tiktok jeton hilesi