a=5
a=a++/++a
Answers were Sorted based on User's Feedback
Answer / abhi
answer is 6 because
a=a++/++a
i.e.=
5=5/5+1
hence 6=5/6
5*6=5
30/5=6
reason is that the post increment increment after process
but pre increment increment before the process so th value
is increment before the process
| Is This Answer Correct ? | 1 Yes | 10 No |
i want to know aptitude questions,technical questions
#include<stdio.h> main() { int a=1; int b=0; b=++a + ++a; printf("%d %d",a,b); }
Binary tree traversing
Explain modulus operator.
C program to perform stack operation using singly linked list
Tell me when is a void pointer used?
Is python a c language?
What is static memory allocation?
Please write the area of a RIGHT ANGLED TRIANGLE.
How can I determine whether a machines byte order is big-endian or little-endian?
string reverse using recursion
What is the use of typedef in c?