*C programming !!!stdio.h, stdlib.h and strings.h are allowed to use !!!The break, continue and goto C commands are not

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

*C programming !!!stdio.h, stdlib.h and strings.h are allowed to use !!!The break, continue and goto C commands are not

Post by answerhappygod »

*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.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply