[Solved]-Question 1 Problem Code Snippet Void Cost Int Price Int Reps Int 0 Reps Cout Price Return Q37294271
QUESTION 1 What is the problem with the code snippet below? void cost (int price, int reps) for (int í = 0; i reps ; i++) cout << price: return int main() cout << cost (10, 4) < endl; return 0; 。The function cost is invoked with the wrong parameters. . The function cost uses uninitialized variables. . The function cost returns void and therefore cannot be used in a cout statement. O The function cost must return an integer value. QUESTION 2 What is the output of the following code snippet? #include <iostream> #include <string> using namespace std; int main() int varl10; int var22; int var3 = 20; var3-var3 / (var1 % var2); cout << var3 << endl; return 0 4 O 20 O There will be no output due to a run-time error Show transcribed image text QUESTION 1 What is the problem with the code snippet below? void cost (int price, int reps) for (int í = 0; i reps ; i++) cout
Expert Answer
Answer to QUESTION 1 What is the problem with the code snippet below? void cost (int price, int reps) for (int í = 0; i reps ; i+… . . .
OR

