Can anybody tell me what is happening in this assignment statement? It was found in some code in a textbook. Somehow this is where val is initialized and without it it does not compile. INT_MAX is coming from The body of the code shouldn't matter too much but I've never seens two values to the right of an assignment operator
int lru = INT_MAX, val;
Edit: People need to relax. This is getting downvotes WAY after it was answered. (I lost my ability to upvote which was not cool) I had an honest question that my TA nor my professor could answer. Thats because normally people write
int val
int lru = INT_MAX
on separate lines. Or they define them both as ints
int val, lru
and then assign lru = INT_MAX
And at the very least put all the assignments/constructions after the definitions int val, lru = INT_MAX
It was an honest question. I did research, I looked through previous questions and answers and couldn't find what I was looking for.