how to find string length wihtout using c function?
Answer Posted / ivr
char *a="india";
for(i=0;a[i]!='\0';i++);
printf("the length is :%d",i);
| Is This Answer Correct ? | 10 Yes | 1 No |
Post New Answer View All Answers
What are the types of type specifiers?
What are the advantages of using new operator as compared to the function malloc ()?
exit () is used to a) exit () terminates the execution of the program itself b) exit () terminates the execution of the loop c) exit () terminates the execution of the block d) none of the above
Why header file is used in c?
State the difference between realloc and free.
to print the salary of an employee according to follwing calculation: Allowances:HRA-20% of BASIC,DA-45% of BASIC,TA-10%. Deductions:EPF-8% of BASIC,LIC-Rs.200/-Prof.Tax:Rs.200/- create c language program?
Why is c so powerful?
What are the disadvantages of a shell structure?
What is the difference between typedef and #define?
What is the difference between the local variable and global variable in c?
What is a #include preprocessor?
Why do we use c for the speed of light?
What are the advantages of external class?
What is a sequential access file?
What is a buffer in c?