in Operating System
838 views
0 votes
0 votes

Consider the following program:

const int n = 50;

int tally;

void total ( )

{

int count;

for (count= 1; count <= n; count++)  {

tally++;

        }

}

void main ( )

{

tally = 0;

parbegin (total ( ), total ( ) );

write (tally);

}

The minimum and maximum value of shared variable tally is

 

1.

0 ≤ tally ≤ 100

 

2.

1 ≤ tally ≤ 50

 

3. 

1 ≤ tally ≤ 100

4. 

2 ≤ tally ≤ 100

in Operating System
838 views

1 comment

2
2

Please log in or register to answer this question.