I am trying to scan in an integer to use for my program. However my program gives me segmentation fault during compilation this is the section that is giving me the error:>
You missed &,
&
Line
scanf("%d",amountWindowForTop);
should be
scanf("%d", &amountWindowForTop); //---------^