What is the output of following C program ?
#include< void main( ) { int i, j; for ( i = 1, j = 2; i < 5, j < 5; i++, j++) { printf("i = %d\t j = %d\n", i, j); printf("i = %d\t j = %d\n", i, j); } } |
---|
Output
|
|
---|---|
i=1
|
j=2
|
i=1
|
|
j=2
|
|
i=2
|
j=3
|
i=2
|
|
j=3
|
|
i=3
|
j=4
|
i=3
|
|
j=4
|
|
|
|
0 comments:
Post a Comment