in C Plus Plus by
Q:
What is the final value of j in the below code?

    #include <stdio.h>
    int main()
    {
        int i = 10, j = 0;
        if (i || (j = i + 10))
            //do something
            ;
    }
a.Depends on language standard
b.0
c.Compile time error
d.2

Related questions

+2 votes
asked Jan 20 in C Plus Plus by SakshiSharma
+2 votes
asked Jan 21 in C Plus Plus by SakshiSharma
+1 vote
asked Jan 20 in C Plus Plus by SakshiSharma
0 votes
asked Jun 11, 2020 in C Plus Plus by Robindeniel
0 votes
asked Jun 15, 2020 in C Plus Plus by Robindeniel
...