Question: What is the correct function prototype for the following function? void exam_function(float a, float b) {float ci c=sqr(ab); printf(c is %f n,c); } a. exam_function(2,3);

 What is the correct function prototype for the following function? void

exam_function(float a, float b) \{float ci c=sqr(ab); printf("c is \%f n,c); \}

a. exam_function(2,3); b. exam_function(float a,float b); c. c= void exam_function (2,3); d.

void exam_function(float,float); I. char a[]="1\0" can be replaced with char a[]="1"; II.

What is the correct function prototype for the following function? void exam_function(float a, float b) \{float ci c=sqr(ab); printf("c is \%f n,c); \} a. exam_function(2,3); b. exam_function(float a,float b); c. c= void exam_function (2,3); d. void exam_function(float,float); I. char a[]="1\0" can be replaced with char a[]="1"; II. char a[]="1\0 "; can be replaced with char a[2]= "1"; III. Char b[] ="cng230"; can be replaced with char b[6] ="cng230"; IV. if (b[7]==a[1]) is a wrong statement since b has only 6 characters a. II and III b. I and II c. II and IV d. I and III What is the error in the following code? void function() \{ return 1; 3 int main() \{ int x=0 printf("\%d", function0); return 0 ; \} a. function cannot be called inside printf statement b. function cannot return an integer value c. function is returning 1 d. No error The following code segments find the sum of 2 arrays' elements, called array a and array b. What is the error? int i; int a[] ={1,2,3,4},b[]={5,6,7,8,9}; for (i=0;i

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!