Results 1 to 2 of 2

Thread: count the occurrence of a given character in a string ?

  1. #1
    Islamic Astrology
    Join Date
    Jan 2019
    Location
    Jaipur
    Posts
    28

    count the occurrence of a given character in a string ?

    Hello Dear,

    Please Tell Me How do you count the occurrence of a given character in a string ?

  2. #2
    Registered
    Join Date
    Aug 2018
    Posts
    592
    Program to count occurrence of a given character in a string. Given a string and a character, task is to make a function which count occurrence of the given character in the string. Examples: Input : str = "geeksforgeeks" c = 'e' Output : 4 'e' appears four times in str.

Similar Threads

  1. given string be reversed using recursion ?
    By islamicastrologer in forum Website Programming & Databases
    Replies: 0
    Last Post: 04-27-2019, 02:10 AM
  2. What is Co-citation and Co-occurrence
    By joee in forum Search Engine Optimization
    Replies: 1
    Last Post: 03-24-2017, 11:15 PM
  3. What is referrer string?
    By access1solution in forum Search Engine Optimization
    Replies: 1
    Last Post: 09-19-2016, 02:25 AM
  4. What is string builder in java ?
    By Shivangi Panwar in forum Website Programming & Databases
    Replies: 1
    Last Post: 08-02-2016, 02:37 AM
  5. String Replace Help in PHP
    By Emancipator in forum Website Programming & Databases
    Replies: 6
    Last Post: 07-21-2006, 08:36 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •