What are global variables in C?
Global variables are variables that can be accessed anywhere in the program.
Global variables are declared before ...
What are global variables in C?
Global variables are variables that can be accessed anywhere in the program. Global variables are declared before the main() function. a) Only the first statement is correct. b) Only the second statement is correct. c) Both statements are correct. d) Both statements are incorrect.
As variáveis globais em C são variáveis que podem ser acessadas em qualquer lugar do programa. Elas são declaradas fora de qualquer função, incluindo a função main(). Portanto, a alternativa correta é a letra c) Ambas as afirmações estão corretas.
0
0
Faça como milhares de estudantes: teste grátis o Passei Direto
Compartilhar