Write C Language Function Called Rotateandfindlongest Two Things Rotates Values Four Integ Q37249165

Write a C language function called rotateAndFindLongest thatdoes two things:

a)It rotates the values of four integer variables that exist inthe calling function. For example, if the value of the fourvariables in the calling function were 34, 28, 66, 19 before thefunction was called, the variable values would be 19, 34, 28, 66after the function was called.

b)The function should return .the value of the largest of theall four variables.


Answer


#include <stdio.h> 3 int rotateAndFindLongest(int a, int *b, int *c, int *d) 4 // changing the sequence int one- *a, two- *b

#include <stdio.h>

int rotateAndFindLongest(int *a, int *b,

OR
OR

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.