PRF192_-_SP_2025_-_Block_5_-_PE_3823.webp
Scar89

PRF192_-_SP_2025_-_Block_5_-_PE_3823.webp

  • Media owner Scar89
  • Ngày thêm
Kizspy.me
Write a C program to search all occurrences of a character in given string.
Input

The first line contains a string with any character
• The second line contains the character to be searched
Constraint

Output
The maximum length of the string is 100 characters.
Please print all the indices of the specified character within the given string during the search
process.
If not found, prints out -1.
Sample
Sample 1
Input
Output
love Prf192. love programming
0 15
Sample 2
Summer Summer
m
Zoom
+ 100%
23 9 10
Close
Chưa có bình luận nào.

Thông tin

Category
PRF192
Thêm bởi
Scar89
Ngày thêm
Lượt xem
986
Lượt bình luận
0
Rating
0.00 star(s) 0 đánh giá

Share this media

Back
Bên trên Bottom