Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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. 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started