Question: Code in C Distribute function : Takes an integer x and integer array y and returns a list (string) of pairs made by pairing x
Code in C
Distribute function: Takes an integer x and integer array y and returns a list (string) of pairs made by pairing x with each element from y. int y1[] ={3,7,2}; int y2[] ={4,7,8,5}; dist(2, y1) = "<(2,3),(2,7),(2,2)>" dist(4, y2) = "<(4,4),(4,7),(4,8),(4,5)>"
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
