Question

    What will be the output of the code

    int main(){

    int x= 10;

    int y=10;

    int s=-(-x-y)

    cout<

    return 0;

    }

    A 20 Correct Answer Incorrect Answer
    B -20 Correct Answer Incorrect Answer
    D 2020 Correct Answer Incorrect Answer
    E None of the above Correct Answer Incorrect Answer

    Solution

    The correct answer is A

    Practice Next
    ×
    ×