Hi,
This is more theoretical question. When one talks about variable scope in C, there are two ways to explain it.
1) the four types of scopes: file, function, block, function-prototype
2) scope according to the storage class
Which one of these is the best way to explain scope in C? Function scope refers to the label identifier. Arent the local variables in function within function scope? What do you mean by function-prtottype? Any one example please.
Thanks.
This is more theoretical question. When one talks about variable scope in C, there are two ways to explain it.
1) the four types of scopes: file, function, block, function-prototype
2) scope according to the storage class
Which one of these is the best way to explain scope in C? Function scope refers to the label identifier. Arent the local variables in function within function scope? What do you mean by function-prtottype? Any one example please.
Thanks.
Comment