871 views
1 votes
1 votes
. Consider the program segment:

x= 0; y=0;

Cobegin

begin

          x= 1; y= y + x;

end

begin

             y= 2; x= x + 3;

 

end

Coend;

 Which of the following indicates possible values for the variables when the segment finishes execution?

(1) x= 1, y= 2 (2) x= 1, y= 3 (3) x= 4, y= 6 (a) 1 only (b) 1 & 2 only (c) 1 & 3 only (d) 2 & 3 only (e) 1, 2, 3

1 Answer

Related questions

0 votes
0 votes
1 answer
1
Gate Mm asked Dec 21, 2015
404 views
0 votes
0 votes
0 answers
2
Gate Mm asked Dec 21, 2015
173 views