how to find string length wihtout using c function?
Answer Posted / j.j.anand kamlesh
void main()
{
int i;
char ch[100];
printf("ENTER THE STRING :");
gets(ch);
for(i=1;ch[i];i++);
printf("THIS IS THE LENGTH : %d",i);
}
Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
What is scope and lifetime of a variable in c?
Is it better to use malloc() or calloc()?
What is #pragma statements?
What does emoji p mean?
When should a type cast be used?
What is the difference between union and structure in c?
Explain indirection?
hai iam working in sap sd module for one year and working in lumax ind ltd in desp department but my problem is i have done m.b.a in hr/marketing and working sap sd there is any combination it. can you give right solution of my problem. and what can i do?
What is return type in c?
the maximum length of a character constant can be a) 1 character b) 8 characters c) 256 chaacters d) 125 characters
What are the usage of pointer in c?
define string ?
Explain how do I determine whether a character is numeric, alphabetic, and so on?
Why we write conio h in c?
Explain what is a 'null pointer assignment' error? Explain what are bus errors, memory faults, and core dumps?