Q99
What would be the output of the following C++ program if the given input is 0 0 0 1 1 0 0 0 0 1 0 0 0 1 0 1 0 1 0 0 1 1 0 0 0 #include using namespace std; bool visited[5]; int G[5][5]; void fun(int i) cout >G[i][j]; for(int i=0;i<5;i++) visited[i]=0; fun(0); return 0;
A.
0 2 3 1 4
B.
0 3 2 4 1
AnswerC.
0 2 3 4 1
D.
0 3 2 1 4
Answer: Option B
Solution
Answer: Option B
No explanation is given for this question Let's Discuss on Board