Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

can it be in programming language C, thanks 3. (20 pt) Write a function count_common (int A, int B[, int nA, int nB) which takes

image text in transcribed

can it be in programming language C, thanks

3. (20 pt) Write a function count_common (int A, int B[, int nA, int nB) which takes two ID arrays of integers and their sizes as parameters, and then counts the number of common numbers in both array s. Assume that the numbers in each array are unique and sorted from smallest to largest. For example, if we have int AI61, 2, 3, 6, 7, 9; int BI51-1, 3, 4, 6, 8) int ni Then when we call your function as ncount common (A, B, 6, 5) it should return 3 because we have three common numbers (1, 3, 6) in both A and B

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

Visual C# And Databases

Authors: Philip Conrod, Lou Tylee

16th Edition

1951077083, 978-1951077082

More Books

Students also viewed these Databases questions

Question

store the following value in EAX register: 1 2 7 8 4 5 6 9 h

Answered: 1 week ago