You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
intmain(){
int a, b;
fscanf(input, "%d", &b);
if(~fscanf(user_output, "%d", &a)) {
// ...
}
}
The ~fscanf part inconsistently displayed itself as purple, while when using other operators it displays black for operator and then blues for the function name:
intmain(){
int a, b;
fscanf(input, "%d", &b);
if(fscanf(user_output, "%d", &a)) {
// ...
}
}
intmain(){
int a, b;
fscanf(input, "%d", &b);
if(+fscanf(user_output, "%d", &a)) {
// ...
}
}
intmain(){
int a, b;
fscanf(input, "%d", &b);
if(-fscanf(user_output, "%d", &a)) {
// ...
}
}
Even for bitwise XOR operator ^ the behavior stays the same:
intmain(){
int a, b;
fscanf(input, "%d", &b);
if(^fscanf(user_output, "%d", &a)) {
// ...
}
}
I believe this caused inconsistency and should be fixed in the future.
The text was updated successfully, but these errors were encountered:
ZsgsDesign
changed the title
bitwise not operator did not get recognized properly when used with function and judging statement
bitwise NOT operator did not get recognized properly when used with function and judging statement
Feb 28, 2022
Given the following code:
The
~fscanf
part inconsistently displayed itself as purple, while when using other operators it displays black for operator and then blues for the function name:Even for bitwise XOR operator
^
the behavior stays the same:I believe this caused inconsistency and should be fixed in the future.
The text was updated successfully, but these errors were encountered: