Question: Please answer all the question. C language required. I really need help thanks. Write a code which searches the number 88 in the following array

Please answer all the question. C language required. I really need help thanks.

  1. Write a code which searches the number 88 in the following array and print the message if the number does not exist in the array.

int A[10] = {2, 1, 15, 20, 11,40,44,8};

Note: You must search the number 88 only not generic search.

  1. Find the error in the following program segments and list them one by one and explain how these errors can be corrected.

void product (int , int , int ,int );

int main(){

int a, b=5, c=3;

b= product (5, b ,4*c);

printf (%d, b);

}

void product(int x, int y, int z, int k);

{

int p;

p=xyzk;

return p;

}

3. Make a structure of leader with name and born year. Print the value of leader without taking any input from user. (Marks=4)

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!