Computer Systems Fundamentals
See precedence table on the C Reference Card for more details https://cgi.cse.unsw.edu.au/~dp1092/23T1/resources/cheatsheets/c-qrc.pdf
Or type man 7 operator
#include <stdio.h>
// Correct version
int main(void){
int ch;
while ((ch = getchar()) != EOF ) {
printf("Got %d %c\n",ch,ch);
}
return 0;
}
// InCorrect version
/*
int main(void){
int ch;
while (ch = getchar() != EOF) {
printf("Got %d %c\n",ch,ch);
}
return 0;
}
*/