write the function int countchtr(char string[],int
ch);which returns the number of timesthe character ch
appears in the string. for example the call countchtr("she
lives in Newyork",'e') would return 3.

Answer Posted / vadivelt

Hi all,

In my post, Answer #5 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


Please Help Members By Posting Answers For Below Questions

Define Array of pointers.

621


Is Exception handling possible in c language?

1570


Explain what is the benefit of using #define to declare a constant?

599


What is the difference between typedef struct and struct?

585


What do you understand by friend-functions? How are they used?

633






Is null a keyword in c?

724


What is the ANSI C Standard?

768


What is linear search?

668


What is const and volatile in c?

557


a sequence of bytes with one to one corrspondence to those in the external device a) sequential addressing b) address c) byte code d) none

712


How pointers are declared?

552


Differentiate between declaring a variable and defining a variable?

596


How does pointer work in c?

607


all c language question

1858


Can a file other than a .h file be included with #include?

672