Madeeasy postal course 2022 DS and Programming page 12
in DS
48 views
0 votes
0 votes
int x=10;
void part1(int *a){
    *a += x++;
    printf("%d", *a);
}
void part2(int *b){
    static x=15;
    *b=*bxx;
    part1(&x);
    printf("%d", *x);
}
void main(){
    part2(&x);
    part1(&x);
}

 

What will be output using static scoping and dynamic scoping respectively?
in DS
by
5 points
48 views

Please log in or register to answer this question.

Ask
Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true
Welcome to GATE CSE Doubts, where you can ask questions and receive answers from other members of the community.