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

Between macros and functions,which is better to use and why?

2230


What is the purpose of sprintf() function?

1133


Explain can the sizeof operator be used to tell the size of an array passed to a function?

1078


What library is sizeof in c?

1093


Explain the array representation of a binary tree in C.

1234


how do you programme Carrier Sense Multiple Access

1969


Explain the term printf() and scanf() used in c language?

1054


Difference between macros and inline functions? Can a function be forced as inline?

1278


Explain what are preprocessor directives?

1070


What is a newline escape sequence?

1106


Write a c program to build a heap method using Pointer to function and pointer to structure ?

4695


What is wild pointer in c?

1080


what is the format specifier for printing a pointer value?

1025


Explain what could possibly be the problem if a valid function name such as tolower() is being reported by the c compiler as undefined?

1022


Why are algorithms important in c program?

1126