Question: What is the output of the #include using namespace std; ?following code int main() { int num[] {6, 5, 7, 3, 6, 7, 3,
What is the output of the #include using namespace std; ?following code int main() { int num[] {6, 5, 7, 3, 6, 7, 3, 3, 3, 9, 6, 7}; int a = 0; for(int i=0; i < 5; i++){ for (int j=0; j < 12; j++){ if (num[i] == num[j]) ++; } } cout < < a; }
Step by Step Solution
There are 3 Steps involved in it
The output of the given code will be 9 Explanation The code initializes an array num ... View full answer
Get step-by-step solutions from verified subject matter experts
