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 dangling pointer in c?

625


What are all different types of pointers in c?

579


A collection of data with a given structure for excepting storing and providing on demand data for multiple users a) linked list b) datastructer c) database d) preprocessor

623


Why isn't it being handled properly?

645


in programming languages a statement or part of a statement that specifies several different execution sequences a) constructs b) distructs c) executes d) none

604






Disadvantages of C language.

662


Is file a keyword in c?

503


Is python a c language?

552


What is wild pointer in c with example?

575


What are pointers? What are stacks and queues?

579


What is the total generic pointer type?

728


Difference between constant pointer and pointer to a constant.

613


Which is the best website to learn c programming?

582


What is your stream meaning?

607


Explain how do you determine a file’s attributes?

594