i writed the following program:
i don't get any problem in compiling but when running i see this#include <stdio.h>
main()
{
int fn, fn2, sum;
sum = fn + fn2;
printf("Welcome to the addition machine!\n");
printf("Write a number:");
scanf("%i", fn);
printf("Write second number:");
scanf("%i", fn2);
printf("The number is... %i\n", sum);
}
what does segmentation fault means becasue i got that in some other programs i writed too!Welcome to the addition machine!
Write a number:12
Write second number:12
Segmentation fault