Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

a parameter passed between a calling program and a called program a) variable b) constant c) argument d) all of the above

1066


what is a function method?give example?

2309


Is this program statement valid? INT = 10.50;

1078


What is #line used for?

984


What are pointers? Why are they used?

1112


What is the use of a semicolon (;) at the end of every program statement?

1410


Where are some collections of useful code fragments and examples?

1106


Define macros.

1219


Tell me with an example the self-referential structure?

939


Which control loop is recommended if you have to execute set of statements for fixed number of times?

1297


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

3127


What is the description for syntax errors?

1093


Where register variables are stored in c?

906


What are the rules for identifiers in c?

1023


Can a pointer point to null?

1019