Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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

AWS Certified Database Study Guide Specialty DBS-C01 Exam

Authors: Matheus Arrais, Rene Martinez Bravet, Leonardo Ciccone, Angie Nobre Cocharero, Erika Kurauchi, Hugo Rozestraten

1st Edition

1119778956, 978-1119778950

More Books

Students also viewed these Databases questions