answersLogoWhite

0

unsigned find (const char* str, char c) {

unsigned total;

total = 0;

if (str!=NULL) while (*str) {

if (*str++==c) ++total;

}

return total;

}

User Avatar

Wiki User

7y ago

What else can I help you with?

Related Questions

Write a program to enter a character and it will tell the character etered?

{char a;...cout > a;cout


How do you write a program that removes all occurrences of a given X in a given sequence of numbers?

You do nothing! A sequence of numbers will contain no X and so nothing needs doing!


Write sentences on which?

This is a program to which I belong.I don't know which kind of pie to order.My classes, which ended last Friday, will start again in six weeks.


What does Escriba las frases en espanol Mean?

"Write the sentences in Spanish"


How do you write Two sentences that have nouns that are preceded by at least two modifiers?

write two sentences to have noun


What should you do if he hate you?

Learn to write sentences, guys hate girls who can't spell or write sentences.


Write a program in c language to implement framing methods like character stuffing?

A program in c language to implement framing methods like character stuffing can be grave sizeCRC-32 and the variable c50.


Can kindergardeners write sentences?

yes they can it's just that there kindergarden sentences


What are some examles of verb?

Examples of verbs include "run," "jump," "think," "write," and "sing." Verbs can express actions (like "dance"), occurrences (like "become"), or states of being (like "exist"). They are essential components of sentences, indicating what the subject is doing or experiencing.


Why use simple sentences?

Simple sentences are easier to understand. They are easy to translate. They are easier to write than complex sentences.


Make few sentences about your pet?

i like to play with my pet in the house i have a bed that is very comfortable and soft. My mom write a letter with a pen.


How can I effectively write crying dialogue in my story?

To effectively write crying dialogue in your story, focus on describing the character's emotions and physical reactions. Use descriptive language to convey the character's tears, trembling voice, and broken sentences. Show the character's vulnerability and inner turmoil through their words and actions. Remember to balance the dialogue with the character's thoughts and feelings to create a realistic and emotional scene.