Write a program to count the occurrences of a character in a string using pointers.
HardProblem Statement
Write a program to count the occurrences of a character in a string using pointers.
Sample Input
str = 'hello world', ch = 'o'
Sample Output
Occurrences of 'o' = 2
Limits
Time: 2s · Memory: 256 MB