Answer Posted / harinath
as the above person said the answer is right but
at first the evaluation starts from denominator, according
to operator precedence pre-increment has more value than
other two(/ and post-increment)
so at first ++a=6 is assigned to a
now the value in a is 6 .so 6/6 gives the value 1.
then post-increment occurs to the value in a(ie.,1).
so the value of a is finally 2(1+1).
| Is This Answer Correct ? | 6 Yes | 2 No |
Post New Answer View All Answers
what is the role you expect in software industry?
What are dangling pointers in c?
In which header file is the null macro defined?
What is difference between structure and union in c programming?
Can the “if” function be used in comparing strings?
What is the difference between malloc() and calloc() function in c language?
Why is c so powerful?
Explain what is a stream?
Why is structure important for a child?
What is calloc()?
What is difference between function overloading and operator overloading?
Hello. How to write a C program to check and display president party like if i type in the console "biden" and hit enter the output shoud be : "biden is democrat" and if i type "trump" and hit enter the output shoud be: "trump is republican"
What is an lvalue in c?
Explain how do you determine the length of a string value that was stored in a variable?
What is c language & why it is used?