Computer Science, asked by dksreekamali, 1 month ago

what will be the output of the program​

Attachments:

Answers

Answered by divya8199
1

Answer:

>> int i, j, m; The variable i, j, m are declared as an integer type. >> j = a[1]++; becomes j = 2++; Hence j = 2 and a[1] = 3. Hence the output of the program is 3, 2, 15.

Answered by surajnegi0600
1

Answer:

The output of the program will be "Hello..."

Explanation:

The program initializes an integer variable 'a' with the value of 10. Then, the program checks if the value of 'a' is equal to 10 using an if statement. If the condition is true, the program prints "Hello..." and then a break statement is executed. The break statement is used to exit a loop or switch statement, but it will not work in the if statement in this case, and it will give a compile time error "break statement, not within a loop or switch" and the program will not execute further.

Since the break statement is causing an error, the program will not execute the next line of code which is printf("Ok") so it will not print 'OK'

In the else block, there is no statement so it will not execute anything.

Finally, the program prints "Hii" and then returns 0.

So the final output will be "Hello..."

More questions and answers

https://brainly.in/question/54799547

https://brainly.in/question/54799693

#SPJ1

Similar questions