0

What are local variables? Please help..

3rd Jun 2018, 3:22 PM
sayed sayed
sayed sayed - avatar
3 Antworten
+ 2
a block of code.. is the code that occurs between 2 brackets... such as this pseudocode public void calcNumOfSeeds (int cSeed) { int x = 0; do something; do something else; do one more thing; etc...; }
4th Jun 2018, 1:48 AM
laura
+ 1
a variable that is used within a block of code... but can't be accessed outside that block of code
3rd Jun 2018, 3:26 PM
laura
0
laura what is the block?
3rd Jun 2018, 4:17 PM
sayed sayed
sayed sayed - avatar