edited by
495 views
1 votes
1 votes

edited by

1 Answer

1 votes
1 votes
Ans should be a=2 , b=1 & c=1 ,

here b is not decremented because in case of OR (||) operation if first condition is true(non zero)  then second condition
will not be checked.  a is incremented and becomes 2 and over all condition is true then the value stored in c is also 1

Related questions

2 votes
2 votes
0 answers
1
4 votes
4 votes
0 answers
2
gari asked Jan 13, 2018
591 views
#include <stdio.h>int main(){ int arr [3] = {{{1,2},{2,3},{4,5}},{{1,2},{2,3},{4,5}}}; printf("%d %d", arr - arr[0], arr [0]- arr[0][0]); return 0;}
2 votes
2 votes
0 answers
4