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
What is a far pointer in c?
what is the difference between class and unio?
What is call by reference in functions?
#include
What does malloc () calloc () realloc () free () do?
Is c dynamically typed?
What is putchar() function?
Write a program in "C" to calculate the root of a quadratic equation ax^2+bx+c=0, where the value of a,b & c are known.
What is meant by high-order and low-order bytes?
please give me a VIRTUSA sample palcement papers.... you will only send TECHNICAL SECTION..... that is help for me Advance Thanks........................
Why doesnt the call scanf work?
What is a structural principle?
What is malloc return c?
Calculate 1*2*3*____*n using recursive function??
What is a sequential access file?