Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

how to find string length wihtout using c function?

Answer Posted / vignesh1988i

#include<stdio.h>
#include<conio.h>
int str_len(char *)
void main()
{
char s[30];
int count;
printf("enter the string :");
gets(s);
count=str_len(s);
printf("the length is :%d",count);
getch();
}
int str_len(char *a)
{
int i=0;
while(*a!='\0')
a++;
i++;
}
return i;
}

thank u

Is This Answer Correct ?    5 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

write a program using linked list in which each node consists of following information. Name[30] Branch Rollno Telephone no i) Write the program to add information of students in linked list

2798


What is volatile variable in c with example?

1035


Write a code to determine the total number of stops an elevator would take to serve N number of people.

1253


What are the disadvantages of c language?

1186


cavium networks written test pattern ..

4076


Can you please explain the difference between malloc() and calloc() function?

1113


Why do we use c for the speed of light?

1190


What’s a signal? Explain what do I use signals for?

1103


Differentiate between ordinary variable and pointer in c.

1171


What is structure of c program?

1155


how to solve "unable to open stdio.h and conio.h header files in windows 7 by using Dos-box software

3309


What is formal argument?

1127


What is the difference between struct and typedef struct in c?

1121


What is echo in c programming?

1014


What is the difference between #include and #include 'file' ?

1046