Question: in C 4(30p) - What does the following program output and Explain the output comming from where? (Only Output even it is correct) or (only

 in C 4(30p) - What does the following program output and

in C

4(30p) - What does the following program output and Explain the output comming from where? (Only Output even it is correct) or (only explanatior even it is correct) or (wrong Explanation with correct answer) is zero point! / / Prototypes void sp1(int a, int b); void sp2 (int a[], int b[]); void sp3( int a, int b) int main() int a[2]={1,2}; int b[2]={8,9} sp1(a[],a[1]); sp2(a,b); sp3(&b[],&b[1]); printf ("%d,%d,%d,%d ",a[],a[1],b[],b[1]); return ;} //functions void sp1(int a, int b) \{ int temp =a; a=b; b= temp; } void sp2(int a[], int b[]){ int temp =a[] a[]=b[]; b[]= temp; } void sp3( int a, int b){ int temp =a; a=b *b = temp; }

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!