0

What will be output of this code? Want FULL explantion plz

const int x=2; const int y=3; var z=(y%x); console.write(++z) also clarify plz "console.write(++z)" what is this plz explain me broadly

21st Jul 2018, 11:33 AM
Harsh Mamgai
Harsh Mamgai - avatar
8 ответов
+ 2
well the correct syntax is Console.Write(++z), also, Console is just a class for a standard I/O stream and the Write function writes something into the output
21st Jul 2018, 11:49 AM
hinanawi
hinanawi - avatar
+ 1
z is equal to 3%2 which is the remainder upon division equaling 1. then console.write(++z) prints out the value of z to the console, but not before incrementing it by 1, so 2 is written
21st Jul 2018, 11:39 AM
hinanawi
hinanawi - avatar
21st Jul 2018, 3:23 PM
Bebida Roja
Bebida Roja - avatar
0
reply me someone plz
21st Jul 2018, 11:35 AM
Harsh Mamgai
Harsh Mamgai - avatar
0
why there we have written console.write(++z) what is the meaning and work of console here and why it is written in such way please explain it
21st Jul 2018, 11:44 AM
Harsh Mamgai
Harsh Mamgai - avatar
0
please can you tell me where can I read about , class like console and write
21st Jul 2018, 11:52 AM
Harsh Mamgai
Harsh Mamgai - avatar
21st Jul 2018, 11:53 AM
Harsh Mamgai
Harsh Mamgai - avatar
0
please can you tell me where can I read about , class like console and write plz
21st Jul 2018, 11:57 AM
Harsh Mamgai
Harsh Mamgai - avatar