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
#define PRINT(int) printf("int = %d ",int) main() {< BR> intx,y,z; x=03;y=02;z=01; PRINT(x^x); z<<=3;PRINT(x); y>>=3;PRINT(y); }
Which control loop is recommended if you have to execute set of statements for fixed number of times?
What are structure members?
Can we declare variable anywhere in c?
Explain what is the difference between a string and an array?
Is fortran still used in 2018?
Explain how do you list a file’s date and time?
Explain what is the difference between functions getch() and getche()?
What is the difference between malloc calloc and realloc in c?
How to set file pointer to beginning c?
Can you explain what keyboard debouncing is, and where and why we us it? please give some examples
What is pointers in c?
Find the second largest element in an array with minimum no of comparisons and give the minimum no of comparisons needed on an array of size N to do the same.
simple program of graphics and their output display
Is array a primitive data type in c?