Uninitialized variables
If we don't assign a value to a variable, it contains "carbage".
#include<stdio.h>
int main() {
int x;
printf("%d\n", x);
return 0;
}
Press ← or → to navigate between chapters
Press S or / to search in the book
Press ? to show this help
Press Esc to hide this help
If we don't assign a value to a variable, it contains "carbage".
#include<stdio.h>
int main() {
int x;
printf("%d\n", x);
return 0;
}