468 views
1 votes
1 votes
int i ;
program main ()
{
    int j = 60;
    i = 50;
    call f (i, j);
    print i, j;
}
procedure f (x, y)
{           
    i = 100;
    x = 10;
    y = y + i ;
}

this is already discussed https://gateoverflow.in/3466/gate2007-it-33

but what if i was redeclared and assigned value 100 in procedure function

eg ; int i = 100;

then a local var i will be created ?

Please log in or register to answer this question.

Related questions

0 votes
0 votes
0 answers
2
vg653 asked Dec 18, 2018
459 views
The Minimum number of possible edges in an undirected graph with n vertices and k components is ______
3 votes
3 votes
0 answers
3
srestha asked Mar 20, 2018
296 views
Let X and Y be normal distribution with mean $\alpha$ and $\beta$ respectively. If $Z=max(X,Y)$then the mean of Z is given by_______________