in Education by
What is the value of m after evaluating the following expression:m -= 9%++n + ++n/2; when int m=10,n=6. Pls Answer Now.. Select the correct answer from above options

1 Answer

0 votes
by
 
Best answer
We have, int m = 10, n = 6. Program: m-= 9%++n + ++n/2; Output: 4 Explanation: m = 10 – [9%++n + ++n/2] = 10 – [9%7 + 8/2] = 10 – [2 + 4] = 10 – 6 = 4. Modulo operator(%) computes remainder. Hope it helps!

Related questions

0 votes
    What is the value of m after evaluating the following expression: m – = 9%++n + ++n/2; when int m=10,n=6 Select the correct answer from above options...
asked Dec 1, 2021 in Education by JackTerrance
0 votes
0 votes
    15. #include #define foo(m, n) m + n int main() { int a = foo(5,13); printf(“%d”, a); Select the correct answer from above options...
asked Dec 30, 2021 in Education by JackTerrance
0 votes
    Write the output for the following i) char c = ‘A’ ; int m = 26 ; int n = c + m ; System.out.println(“ n = “ +n) ; Select the correct answer from above options...
asked Dec 19, 2021 in Education by JackTerrance
0 votes
    Write the output for the following i) char c = ‘A’ ; int m = 26 ; int n = c + m ; System.out.println(“ n = “ +n) ; Select the correct answer from above options...
asked Dec 18, 2021 in Education by JackTerrance
0 votes
    Q.32 :-What will the SWAP macro in the following program be expanded to on preprocessing? will the code compile? ... y); return 0; Select the correct answer from above options...
asked Nov 30, 2021 in Education by JackTerrance
0 votes
    what will be the result stored in a and b after evaluating the following assume that a=-4 and b=3 a=++b-a b+=a print (a,”,”,b) Select the correct answer from above options...
asked Dec 12, 2021 in Education by JackTerrance
0 votes
    int n=10;int res=(n–+10>–n×5)?++n:n++ System.Out.println(res+”,”+n); what is the output Select the correct answer from above options...
asked Dec 30, 2021 in Education by JackTerrance
0 votes
    How many times the following loop will execute? And, what will be the output of this loop? int m=3; for (; m...
asked Nov 27, 2021 in Education by JackTerrance
0 votes
0 votes
    int x =20, y = 10, z; What is the value of z in z = ++x * (y – –) – y ? Show the steps. Select the correct answer from above options...
asked Dec 24, 2021 in Education by JackTerrance
0 votes
    Choose the final value of c from the following code, when, int a=12, b=13, c=0; c=a+++++a/7+b++; * Select the correct answer from above options...
asked Nov 29, 2021 in Education by JackTerrance
0 votes
    a,b,c and d are int type, however, the expression is slightly modified as (a+b*c-d)/7.0. ... of the following mathematical expression? Select the correct answer from above options...
asked Dec 19, 2021 in Education by JackTerrance
...