+ 1
E() called two time. Each time value of a and b is different. Why? Explain in detail please.
#include <stdio.h> int a=10,b=20; int main() { int a=5,b=6; C(); a=2,b=3; E(); printf("\n%d %d",a,b); return 0; } C() { int a=23; printf("\n%d %d",a,b); D(); a=6; } D() { int b=44; E(); printf("\n%d %d",a,b); } E(){ printf("\n%d %d",a,b); a=1,b=2; }
2 Respuestas
+ 4
E use a and b of the global scope, so the first time they have 10 and 20 as their values, then they have 1 and 2 as E set them so that they have those values
+ 1
Thnk you...