• Define a void function called myFunc that takes a 2-by-3 integer array as an argument and performs the following: o Using nested for loops, the function should print all array elements greater than 10. o If there is no array element greater than 10, the function prints "Number greater than 10 not found". • Write a main function that performs the following: o Defines a 2-by-3 integer array (two- dimensional). o Initializes all elements of the array with the value 20 o Calls the function myFunc with the array.

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter7: Arrays
Section: Chapter Questions
Problem 6PP: (Numerical) a. Define an array with a maximum of 20 integer values, and fill the array with numbers...
icon
Related questions
Question
• Define a void function called myFunc that
takes a 2-by-3 integer array as an argument
and performs the following:
o Using nested for loops, the function should
print all array elements greater than 10.
o If there is no array element greater than 10,
the function prints "Number greater than
10 not found".
• Write a main function that performs the
following:
o Defines a 2-by-3 integer array (two-
dimensional).
o Initializes all elements of the array with
the value 20
o Calls the function myFunc with the
array.
Transcribed Image Text:• Define a void function called myFunc that takes a 2-by-3 integer array as an argument and performs the following: o Using nested for loops, the function should print all array elements greater than 10. o If there is no array element greater than 10, the function prints "Number greater than 10 not found". • Write a main function that performs the following: o Defines a 2-by-3 integer array (two- dimensional). o Initializes all elements of the array with the value 20 o Calls the function myFunc with the array.
Expert Solution
steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Knowledge Booster
Arrays
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr