Which of the following code segments will correctly copy the
Which of the following code segments will correctly copy the string \"s2\" into the string \"s1\". Make sure you circle ALL correct answers. A) for (i = 0; s2[i] != \'\\0\'; i++) s1[i] = s2[i]; B) strcpy (s1, s2); C) s1 = s2; D) for (i = 0; s2[i] != \'\\0\'; i ++) s1[i] = s2[i]; s1[i] = \'\\0\'; E) i=0; while(i
Solution
5)ans) B,C,E
6)ans)D
This cods will add the elements in the diagonal elements of the array sq[0][2]=6,sq[1][1]=1,sq[2][0]=3
6+1+3=10
______________Thank You