Question: 1. Consider the following program: int main() { int a = 3, b; float x = 2.0, y; b = abc(a); y = xyz(x, a);

1. Consider the following program:
int main() 

{

 int a = 3, b;
 float x = 2.0, y; 

 b = abc(a);
 y = xyz(x, a); 

return 0;

}

int abc(int m) 

{

int i, j = 1;

for(i=1; i<=m; i++)

j=j*i;

return j;

}

float xyz(float v, int k)

{

int i;

float w = 1.0;

for(i=1; i<=k; i++; w*=v);

return(w);

}

When the program is completed, the value of b is __________ and the value of y is __________.

2. Complete the following sentence: If you declare an array to hold N values, legal subscripts run from _____ to ______.

3. Complete the following sentence: the unsubscripted name of an array is _______________________________.

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 Databases Questions!