Consider the following code fragment:
int main(void) {
int m = 4;
mystery ( m );
mystery ( m );
printf("%d", m);
return 0;
}
What is the output on the monitor if mystery is defined as
follows ?
void mystery (int m) {
m = m+3;
}
Write a program to maintain a singly linked list having the
following functions:
a) Creation of the list
b) Displaying the list.
c) Swap all nodes at consecutive even odd positions.
E.g.: The nodes at position 1 should be swapped with node
2, node 3 with node 4 and so on.
#define MAX(x,y) (x) > (y) ? (x) : (y)
main()
{
int i = 10, j = 5, k = 0;
k = MAX(i++, ++j);
printf("%d %d %d", i,j,k);
}
what will the values of i , j and k?
}