#include
int main(){
int a=2;
a=a++ + ~++a;
printf("%d",a);
return 0;
}
The output to this prog is 0. Can anyone explain to me how the prog flows?
The first think that will happen is the preincremnt term is solved.. a++ + ~3..
What happens next?
Still Need Help?
Join the QuestionCove community and study together with friends!
Sign Up
OpenStudy (yrelhan4):
@Callisto
OpenStudy (yrelhan4):
@DLS
OpenStudy (yrelhan4):
@DLS
OpenStudy (dls):
o teri,merko to ek bhi notification nahi ayi
OpenStudy (yrelhan4):
use chod. answer bta.. JALDI
Still Need Help?
Join the QuestionCove community and study together with friends!
Sign Up
OpenStudy (dls):
#include<stdio.h>
int main(){
int a=2;
a=a++ + ~++a;
printf("%d",a);
return 0;
}
The output to this prog is 0. Can anyone explain to me how the prog flows?
The first think that will happen is the preincremnt term is solved.. a++ + ~3..
What happens next?
------------------------------
a=2 hai
a++ + ++a hota to..
2 + 4 = 6 hota ab bitwise compliment tu dekhle.