Hi all.
Why does the while loop evaluate to true, and the program steps into the while loop? Without the second condition, it evaluates to false. What am I missing?
Thanks in advance.
Code:#include <stdio.h>
#include <stdlib.h>
int main(void)
{
int x = 34; // ascii value of "
while(x != '"' || x != '?')
{
printf("x != \"");
exit(0);
}
return 0;
}