Interview Questions and Answers :: HCL Technologies
Home > Experience Archives > HCL Technologies > Interview Question Set 3 > Discussion
4. what is the output of the program
#include
int main(){
int i = -1, j=0,k=1;
int r = ++i || j++ && --k;
printf("%d %d %d %d", i, j, k, r);
return 0;
}
#include
int main(){
int i = -1, j=0,k=1;
int r = ++i || j++ && --k;
printf("%d %d %d %d", i, j, k, r);
return 0;
}
Answer:
No Discussion on this question yet!
No Discussion on this question yet!