Computer Science, asked by indiraramadevadig260, 10 months ago

What will be the output? (&& is logical AND operation) #include int main() { int i=0,j=1; printf("\n%d",i++&&++j); printf("\n%d%d",i,j); return 0; }

Answers

Answered by codiepienagoya
0

The output of the given code:

Output:

0

11

Explanation:

  • In the given code, an integer variable i and j is declared, in which variable "i" initialized with 0, and variable "j" is initialized with 1.
  • In the next step, the print method is used, which uses variable i and j, in which it will use post and pre-increment with the AND operator, which will give value, which is 0.
  • In the next print method, it will print the variable "i" and j value, which is 1 and 1.

Learn more:

  • Output of the program: https://brainly.in/question/15609890
Similar questions