hello friends....
TAKE THE FIRST STEP TO KNOWLEDGE FRIENDS BECAUSE KNOWLEDGE IS FREE.
>> /* WRITE A PROGRAM TO READ THE STRING FORM KEYBOARD AND COUNT ITS TOTAL LENGTH. */
#include<stdio.h>
#include<conio.h>
void main()
{
char str[30];
int l;
clrscr();
printf("enter a string : ");
gets(str);
l=strlen(str);
printf("length : %d\n",l);
getch();
}
/* OUTPUT */
========================
enter a string : string demo
length : 11
* * * * * * * * * * * * * *http://www.dnpdeveloper.com
if you have like this blog so share and subscribe, comment for this blog.
if your any question, so comment pleass.
MY INSTAGRAM ID : dnp176
Comments
Post a Comment