edited by
663 views
2 votes
2 votes

Consider the following program:

The value printed by the above program is:

1. 20

2. 30

3. 40

4. 50

I think it will be undefined behaviour because of:
arr[count++] = incr();

But I am not sure. need to confirm.

edited by

Please log in or register to answer this question.

Related questions

4 votes
4 votes
0 answers
1
gari asked Jan 13, 2018
590 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