about the braces in case statement in switch
问题 today while i was trying to write a code to just add & subtract the two 2*2 matrices, in which i used switch statement, i got an error case bypass initialization of local variable in function main() #include <iostream.h> #include <conio.h> #include <string.h> int main() { int mat1[2][2], mat2[2][2], mat3[2][2]; cout << "Enter the elements in the first matrix"; for (int i = 0; i < 2; i++) { for (int j = 0; j < 2; j++) { cin >> mat1[i][j]; } } cout << "\n\nEnter the elements of the second