• 2022-06-04
    The switch statement with different functions from the statement if (a == 1) a = b; else a ++; is ( ).
    A: switch(a) { case 1:a=b;break;
    default : a++;
    }
    B: switch(a==1) { case 0:a=b;break;
    case 1: a++;
    }
    C: switch(a) { default:a++;break;
    case 1:a=b;
    }
    D: switch(a) { default:a++;break;
    case 1:a=b;
    }
  • 举一反三