Question from the Language C - Fundamentals test

What can we say about the variable a?

Medium

What can we say about the variable a?

int a = 20;
int main ()
{
int a = 10;
int b = 20;
show(a,b);
return 0;
}

void show(int a, int b) {
printf ("value of a %d \n", a);
printf ("value of b %d \n", b);
}
Author: KahinaStatus: Published(Update)Question passed 188 times
Edit
1
Community Evaluations
developer avatar
Antoine
13/12/2023
C'est ambigu pour "c'est une variable globale" car ce n'est pas indiqué de quelle variable a on parle, du coup j'ai considéré que ce n'était pas global puisque je ne savais si on parlait de la variable a du main ou en-dehors du main.