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
How do you list files in a directory?
What happens if you free a pointer twice?
What kind of structure is a house?
Why do we use int main instead of void main in c?
Hai sir, I had planned to write the NIC scientific engineer exam , plz post the sample question......
write a program for the normal snake games find in most of the mobiles.
GIVEN A FLOATING POINT NUMBER HOW IS IT ACTUALLY STORED IN MEMORY ? CAN ANYONE EXPLAIN?? THE 32 BIT REPRESENTATION OF A FLOATING POINT NUMBER ALLOTS: 1 BIT-SIGN 8 BITS-EXPONENT 23 BITS-MANTISSA
Explain how does flowchart help in writing a program?
write a program that will open the file, count the number of occurences of each word in the the complete works of shakespeare. You will then tabulate this information in another file.
What are the salient features of c languages?
Explain a pre-processor and its advantages.
Differentiate between ordinary variable and pointer in c.
What is struct node in c?
What are the key features in c programming language?
explain what are actual arguments?