1. Write the function int countchtr(char string[ ], int ch);
which returns the number of times the character ch appears
in the string.
Example, the call countchtr(“She lives in NEWYORK”, ‘e’)
would return 3.
Answer Posted / vadivelt
Hi all,
In my post, Answer #3 pls change the statement in if
condition from "ch <= 96" to "ch <= 90"
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is the difference between #include
What is a pointer value and address in c?
what do u mean by Direct access files? then can u explain about Direct Access Files?
Difference between malloc() and calloc() function?
What is the size of a union variable?
What is the difference between typedef struct and struct?
Write a program with dynamically allocation of variable.
What is a lvalue
what will be maximum number of comparisons when number of elements are given?
Explain what is the difference between a string copy (strcpy) and a memory copy (memcpy)? When should each be used?
What does. int *x[](); means ?
What is atoi and atof in c?
the 'sizeof' operator reported a larger size than the calculated size for a structure type. What could be the reason?
Q.1 write aprogram to stack using linklist o insert 40 items? Q.2 write a program to implement circular queue with help of linklist?
Explain how do you search data in a data file using random access method?