Write a program that will ask for 5 numbers from the user and if the number is present in array the function should return 1 | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Write a program that will ask for 5 numbers from the user and if the number is present in array the function should return 1

31st Jul 2017, 5:43 PM
Vicky
5 Answers
0
Which number should be present?
9th Aug 2017, 1:32 PM
Timon Paßlick
0
The 5 numbers which you will ask from the user
9th Aug 2017, 1:39 PM
Vicky
0
Which array?
9th Aug 2017, 1:40 PM
Timon Paßlick
0
Is it passed via argc and argv? Is it embedded in the source code? Is it also typed in?
9th Aug 2017, 1:41 PM
Timon Paßlick
0
What's the return type of the function? bool or short?
9th Aug 2017, 1:43 PM
Timon Paßlick