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
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
What is volatile variable in c with example?
Write a code to determine the total number of stops an elevator would take to serve N number of people.
What are the disadvantages of c language?
cavium networks written test pattern ..
Can you please explain the difference between malloc() and calloc() function?
Why do we use c for the speed of light?
What’s a signal? Explain what do I use signals for?
Differentiate between ordinary variable and pointer in c.
What is structure of c program?
how to solve "unable to open stdio.h and conio.h header files in windows 7 by using Dos-box software
What is formal argument?
What is the difference between struct and typedef struct in c?
What is echo in c programming?
What is the difference between #include and #include 'file' ?