Assume that you have a structure defined as follow
struct two_integers {int n1;int n2;};
and this structure is initialized as follow
struct two_integers x={100,-100};
Write a C function that returns the same structure x but n1 and n2 are swapped
struct two_integers {int n1;int n2;};
and this structure is initialized as follow
struct two_integers x={100,-100};
Write a C function that returns the same structure x but n1 and n2 are swapped
No comments:
Post a Comment