C - Variables and Data Types
Identify the error in the following C code snippet:
void func() {
printf("%d", x);
}
int main() {
int x = 5;
func();
return 0;
}