how to find string length wihtout using c function?

Answer Posted / ramesh

# include <stdio.h>
# include <conio.h>

void main()
{
int i;
char sring[100];
printf("ENTER THE STRING :");
gets(string);
for(i=1;string[i];i++);
printf("LENGTH IS : %d",i);
}

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is identifiers in c with examples?

672


What is extern keyword in c?

639


How do you declare a variable that will hold string values?

665


How do we print only part of a string in c?

579


What is printf () in c?

578






Is fortran still used in 2018?

588


Is malloc memset faster than calloc?

611


Why pointers are used?

629


How many header files are in c?

547


What do you mean by a sequential access file?

621


What is malloc and calloc?

571


a formula,a series of steps,or well defined set of rules for solving a problem a) algorithem b) program c) erdiagram d) compiler

609


given post order,in order construct the corresponding binary tree

2320


What is meant by operator precedence?

670


i got 75% in all semester am i eligible for your company

1733