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
a parameter passed between a calling program and a called program a) variable b) constant c) argument d) all of the above
what is a function method?give example?
Is this program statement valid? INT = 10.50;
What is #line used for?
What are pointers? Why are they used?
What is the use of a semicolon (;) at the end of every program statement?
Where are some collections of useful code fragments and examples?
Define macros.
Tell me with an example the self-referential structure?
Which control loop is recommended if you have to execute set of statements for fixed number of times?
how to print electricity bill according to following charges first 100 units -1rs per unit for next 200 units-1.50 rs per unit without using conditions
What is the description for syntax errors?
Where register variables are stored in c?
What are the rules for identifiers in c?
Can a pointer point to null?