Ask Question
3 August, 23:14

Given the following code, what is the final value of i at the end of the program? int i; for (i=0; i<=4; i++) { cout << i << endl; }

Question 5 pow (2,3) is the same as pow (3,2). Question 14 options: True False

Question 6 The functions pow (), sqrt (), and fabs () are found in which include file?

cstdlib

cmath

iostream

regular

+1
Answers (1)
  1. 3 August, 23:18
    0
    The final value of i will be 5 at the end of the program.

    i=0, i≤4, prints 0.

    i=1, i≤4, prints 1.

    i=2, i≤4, prints 2.

    i=3, i≤4, prints 3.

    i=4, i ≤ 4, prints 4.

    i=5, i is not ≤ 4, stops here.

    Q-5:

    pow (2,3) = 8 and pow (3,2) = 9, so they are not same.

    Q-6:

    The functions pow (), sqrt (), and fabs () are found in which cmath
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “Given the following code, what is the final value of i at the end of the program? int i; for (i=0; i ...” in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers