+ 24
👉👉👉 Just a doubt ??? ☺
int x=3,y=5; System.out.print (y%x*(++x)/8) //here , it will execute like 1)5%3*4/8 // ()has highest precedence 2)2*4/8 // %,*,/ have same precedence ...executes from left to right , so here first %, then * , then / 3)8/8 // now , * comes in left ... so it executes first & then only / left //answer 1 ☺ //am i right ?????
13 Respuestas
+ 13
answer is 1 // & u can believe that
// i want to ask ... is my explanation right ???
+ 14
that was ++x ,
//typing mistake 😅
//corrected now ☺
+ 14
i see the precedence table and associativity ☺
//BODMAS not work here 😅
//u see i multiplied before division , ie , bodmas not works here
+ 6
think so so ☺
+ 3
ok ok then 😃
+ 3
and my ans is 0 according to that😁
+ 2
am not sure but when it's x++ then isn't value of x will be still 3 not 4🤔
+ 2
that's what I was thinking according to bodmas rule
+ 2
I mean, I can believe it.
+ 2
I think the ans is 1
+ 1
hi...
+ 1
It will be 1 according to BDMMAS .