Variables in C programming Q - 7

Last Updated :
Discuss
Comments

What happens if you use an undeclared variable in C?

It gets initialized to 0

Program runs with a warning

The compiler assigns memory automatically

Compilation error

Share your thoughts in the comments