8.1k views
5 votes
8. Show the output produced by the following program fragment. Assume that i, j, k are int variables.[18 points] i = 7, j = 8; i *= j + 1; printf(%d \t %d \\, i, j);

1 Answer

3 votes

Answer:

63 8 is the output of the given question. If the printf("%d \t %d ", i, j); is like that also we have to include the header file.

Explanation:

The following are the description of the output.

  • In the given question initially, the "i " variable is initialized by 7 and "j " variable is initialized by 8 respectively.
  • After that the operation i *= j + 1; means i*=8+1 i*= 9 i=63 it store 63 that means the i variable will store store 63.
  • Finally, the printf function has printed the value of i and j variable with space
  • So 63 8 is displayed in the console window.
User Paragbaxi
by
3.5k points