Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions