how to generate the length of a string without using len
funtion?
Answer Posted / shreesha vailaya
int strlength(char s[])
{
int i,len;
for(i=0;s[i];i++)
len++;
return len;
}
| Is This Answer Correct ? | 4 Yes | 4 No |
Post New Answer View All Answers
What are the main characteristics of c language describe the structure of ac program?
If null and 0 are equivalent as null pointer constants, which should I use?
What is call by reference in functions?
Describe the modifier in c?
What is sizeof int?
Describe dynamic data structure in c programming language?
What is the use of sizeof?
what is stack , heap ,code segment,and data segment
A routine usually part of the operation system that loads a program into memory prior to execution a) linker b) loader c) preprocessor d) compiler
How can you increase the size of a statically allocated array?
What does 3 periods mean in texting?
how to make a scientific calculater ?
What are the advantages of c language?
Hi how many types of software editions are there and their difference (like home editions, enterprise, standard etc) can u please help me
What are the preprocessor categories?