Sail E0 Webinar
Question
What is the difference between the following 2 codes?//Program 1    int main()    {        int d, a = 1, b = 2;        d =  a++ + ++b;        printf("%d %d %d", d, a, b);    } //Program 2    int main()    {        int d, a = 1, b = 2;        d =  a++ + ++b;        printf("%d %d %d", d, a, b);    }
Options:
A .  No difference as space doesn't make any difference, values of a, b, d are same in both the case
B .  No difference as space doesn't make any difference, values of a, b, d are different
C .  Program 1 has syntax error, program 2 is not
D .  Program 2 has syntax error, program 1 is not
Answer: Option A


None.



Was this answer helpful ?
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

More Questions on This Topic :


Latest Videos

Latest Test Papers