Write a program that repeatedly prompts for a nonzero


Problem

1. Write a program that repeatedly prompts for a nonzero integer to populate an array of size 20, using 0 to signal completion. The user then inputs an integer to be searched for in the array. The array index is printed if the integer is found, and a suitable message is printed otherwise.

2. If you declare an array as int arr[20];, can you access the element arr[30]? Explain with reasons.

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: Write a program that repeatedly prompts for a nonzero
Reference No:- TGS02671939

Expected delivery within 24 Hours