segmentation fault in C during scanf
问题 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: int main(void) { int totalHeight=0, floorWidth=0, amountOfStories, amountWindowForTop, amountWindowForMiddle, amountWindowForBottom, windowHeight, middleWindowWidth, topWindowWidth, bottomWindowWidth, minimumHeight, minimumWidth; char topFloorWindowContent, middleFloorWindowContent, bottomFloorWindowContent, windowBorder,