Question
I am beginner of programming fundamental.SO each line of code comment and explain. strickly not use string and not use this header files #include and
I am beginner of programming fundamental.SO each line of code comment and explain.
strickly not use string and not use this header files #include
output of code screen shot pic send plz.
A 1D binary character array is given to you in file task1.txt. You are required to find out maximum consecutive ones in the array.
Note: Read the file and find the exact length of data in a separate function. Use that size to create a dynamic integer array using pointers. Then, read the file again and insert data into this dynamic array of exact calculated size. Then You are required to find out maximum consecutive ones in the array.
task1.txt 11010101111110110111010
Expected output:
- maximum consecutive ones are: 111111
- Starting index is: 7
- Length is: 6
output of code screen shot pic send plz.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started