*C programming
!!!stdio.h, stdlib.h and strings.h are allowed to use
!!!The break, continue and goto C commands are not allowed to be
used with loops. A
zero will be given for that question if your program contains a
break, continue or goto
command used with loops. The break command is allowed only as part
of the switch
statement.
Write a program to enter a text. Then enter a pattern and count
the number of times the pattern is repeated in the text. Your
program will read in a string not a character at a time.
Sample test Run
Enter string : She sells sea shells on the sea shore
Enter the pattern : sea
Pattern found 2 times
***Print ‘Pattern not found’ if pattern is not found.
*C programming !!!stdio.h, stdlib.h and strings.h are allowed to use !!!The break, continue and goto C commands are not
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am