What is the output of the following 'C' program?
main()
{
extern, int a;
printf("\n%d",a)'
}
int a =20
The output of the following 'C' program
main()
{
extern, int a;
printf("\n%d",a)'
}
int a =20
Output:-
Garbage value
We have only declared the variable, and not initialized it, which means that the block of memory that has been allocated to the variable still contains some value that has been left over from previous programs and operations. That value is called a garbage value.