Question: C Programming Given two arrays of integers output the smallest number in the first array not present in the second array. Input Specification: The first

C Programming

Given two arrays of integers output the smallest number in the first array not present in the second array.

Input Specification:

The first line contains the size N1 of the first array.

Next line gives the contents of the first array.

Next line contains the size N2 of the second array.

Next line gives the contents of the second array.

Output Format:

Output must be a single number which is the smallest number occurring in the first array that does not occur in the second. In case there Is no such number, output NO.

Variable Constraints:

The sizes of the arrays are smaller than 20.

Each array entry is an integer which fits an int data type.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!