Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Q 1 ) Consider the follawing structure: struct empl char name [ 2 0 ] ; int salary: } Write a C C + function

Q1) Consider the follawing structure:
struct empl
char name[20];
int salary:
}
Write a CC+ function that finds the average salaryand then primt the names and salaries to the screen that are above the averake, Array of structures and its sise are Riven as parameters to vour function.
void printabovea vgsalary (struct emp s [1. int size);
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions