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
Between macros and functions,which is better to use and why?
What is the purpose of sprintf() function?
Explain can the sizeof operator be used to tell the size of an array passed to a function?
What library is sizeof in c?
Explain the array representation of a binary tree in C.
how do you programme Carrier Sense Multiple Access
Explain the term printf() and scanf() used in c language?
Difference between macros and inline functions? Can a function be forced as inline?
Explain what are preprocessor directives?
What is a newline escape sequence?
Write a c program to build a heap method using Pointer to function and pointer to structure ?
What is wild pointer in c?
what is the format specifier for printing a pointer value?
Explain what could possibly be the problem if a valid function name such as tolower() is being reported by the c compiler as undefined?
Why are algorithms important in c program?