Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Which of the following items are non - local references in the following C program? 1 #include 2 3 enum houses { GRYFFINDOR , RAVENCLAW,
Which of the following items are nonlocal references in the following C program?
#include
enum houses GRYFFINDOR RAVENCLAW, SLYTHERIN, HUFFLEPUFF;
int pointsMultiplier ;
int calcPointsint points
return points pointsMultiplier;
int CalcPointsForHouseenum houses house, int points
int finalPoints ;
if house GRYFFINDOR
pointsMultiplier ;
else if house SLYTHERIN
pointsMultiplier ;
else if house RAVENCLAW
pointsMultiplier ;
else
int pointsMultiplier ;
finalPoints calcPointspoints;
return finalPoints;
finalPoints calcPointspoints;
return finalPoints;
int main
int housePoints ;
int finalPoints ;
finalPoints CalcPointsForHouseHUFFLEPUFF housePoints;
printfHufflepuff: d
finalPoints;
pointsMultiplier ;
finalPoints calcPointshousePoints;
printfRavenclaw: d
finalPoints;
return ;
Group of answer choices
points line
pointsMultiplier line
pointsMultiplier line
finalPoints line
points line
finalPoints line
points line
finalPoints line
housePoints line
pointsMultiplier line
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started