Question: Given the following code, what data type does the variable X have at the point of the print statement? char X; / / Global int

Given the following code, what data type does the variable X have at the point of the print statement?
char X; // Global
int func( float X ){
double sum;
for (int X =0; X<5; X++){
sum += X;
}
printf ("X = what type here?
") ;
return X;
}
A. char
B. int
C. float
D. double
E. undetermined.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!