Please explain the evalution of this expression...!
int i=2;
int j=4;
int k=i++>j&2;
What is the value in k...???
int j=4;
int k=i++>j&2;
What is the value in k...???
Replies
-
born_star16According to me value of k will be 1.
-
simplycoderI think k will be 0.
This is my analysis.
relational preceeds over bitwise operator.
current value of i=2 and j is 4
so i>j will be 0
0&2 will be 0
this will make k=0.
You are reading an archived discussion.
Related Posts
I stumbled upon the news that Infosys has launched a radio channel for their employees: Business Line : Industry & Economy / Info-tech : Infy launches radio station for staff...
Accenture I believe is on a hiring spree. Hundreds of students are being recruited from different campuses.
I will upload the Latest Accenture paper questions in this thread soon.
If...
The client is a leader within the Automation and Control Systems field with operations in 100 countries worldwide. They specialise in providing integrated solutions to the Transmission and Distribution and...
BOSM 2011- Annual sports festival of BITS Pilani
for more details you can visit the below link..
BOSM 2011 | BITS Pilani