3 ms·
You can also declare variables in conditional statements in C/C++ like https://godbolt.org/z/h0BR8K https://godbolt.org/z/h0BR8K int foo(int); int bar(int
by cpeterso 7y ago
You can also declare variables in conditional statements in C/C++ like https://godbolt.org/z/h0BR8K https://godbolt.org/z/h0BR8K
int foo(int);
int bar(int x) {
if (int y = foo(x)) return 0;
return x;
}