0

C

What’s fhe different between a global declaration and a local declaration ?

18th Dec 2018, 10:27 PM
Erica
Erica - avatar
1 Odpowiedź
+ 4
Erica Local variables are the variables which are declared or defined within the declaration part of the function block. Global variables are the variables which are declared or defined below the header files inclusion section or before the main () function. https://www.includehelp.com/c/difference-between-local-and-global-variables-in-c.aspx This link will help you understand better with examples.
18th Dec 2018, 11:41 PM
Ikechukwu Okonkwo
Ikechukwu Okonkwo - avatar