New course! Every coder should learn Generative AI!
Try a free lesson+ 15
[Solved]What's x?
int x = 4; x = ++|+|++; What's the value of x now? (Probably a 2 digit number)
10 Answers
+ 31
its the greatest excuse I have heard ))))))@Jafca
+ 26
most probably there was int I = 4; because in that case it will give 2 digit number as the output :)
+ 12
@Emma I figured I must have read it wrong, oops xD I was eating chocolate cake
+ 8
@K.C. Leung I did try and that's why I'm asking here :)
I saw it in a user-submitted C# challenge question
+ 4
Why don't you try to compile it ?
The c# compiler complaint:
error CS1525
Invalid expression term '|'
+ 3
x=10
+ 2
10
0
11
- 1
i think value of x=5 please correct me if i was wrong.
- 1
x=16