Home > Back-end >  Consult the c
Consult the c

Time:10-10

#include

Int main ()
{
Int a=20;
Int score=a + 100;
Printf (" % d \ n ", score).

{
Int score=50;
{
Score=10;
Printf (" % d \ n ", score).
}
A=10;
}

{
Score=a + 250;
Int score=30;
Printf (" % d/n ", score).
}

Printf (" % d \ n ", score).
return 0;
}



Why is the final result of 260?
Online, such as prawn

CodePudding user response:

A=10
The back and score=a + 250;
Don't be 260

CodePudding user response:

A=10;//this is type automatic variables, value of 10
}

{
Score=a + 250;

CodePudding user response:

120
10
30/n260
Press any key to continue

CodePudding user response:

Is ah, clearly is 260!
  • Related