Answered step by step
Verified Expert Solution
Link Copied!

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);

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

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

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

Recommended Textbook for

Database Design And Relational Theory Normal Forms And All That Jazz

Authors: Chris Date

1st Edition

1449328016, 978-1449328016

More Books

Students also viewed these Databases questions

Question

ERGENT

Answered: 1 week ago

Question

Perform an Internet search. Discuss a company that uses EPLI.

Answered: 1 week ago

Question

How do you feel about employment-at-will policies? Are they fair?

Answered: 1 week ago