+ 1
question regarding integer declaration. i would appreciate any help.
i have seen this question in while playing a challenge but i have even tried the code and is not running plz explain me if this code is executable or not https://code.sololearn.com/cr9VVH7MJiDn/?ref=app
7 ответов
+ 21
The ternary operation implies that, if a and b are equal, then b will be 22, else b will be 33. But b is not initialized here. So you can't compare if a==b or not.
+ 14
It doesn't compile because you didn't assign a value to b before the shortened if/else statement.
You have to initialize b before you use it here.
+ 13
Give some value to b also,
then try the condition with new variable c
+ 12
Oh man,
put the variable b above c.
You cannot use a variable before defining it.
POP follows top to bottom approach so first initialise a, then b, then c.
+ 3
thnx tash & shamima
+ 2
can u plz send an example of how to do it.
+ 2
i m trying but still getting similar result
https://code.sololearn.com/cr9VVH7MJiDn/?ref=app