Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

programming in c 1. (10 pts) Declare a two-dimensional int array of size 4 x 10 (row x column) and initialize the first element of

image text in transcribedprogramming in c

1. (10 pts) Declare a two-dimensional int array of size 4 x 10 (row x column) and initialize the first element of every row to 6 and the remaining elements to 0 at the same time of declaration. Use a short statement wherever possible. 2. (10 pts) Declare a two-dimensional int array of size 4 x 5 (row x column) and initialize the element array(0)(1) to 3 and all other elements to zeros. Use a shortest possible statement. 3. (30 pts) Fix all errors in the following program: #include int main(void) { char a[7] = {'a', 'b', 'c','d', 'e','f','g', 'h'); char b[7] = {'A'}; char target='f'; /* copy array a into array b: +/ ba; /* Look for target in array a: */ for (int x=0; x

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

Contemporary Issues In Database Design And Information Systems Development

Authors: Keng Siau

1st Edition

1599042894, 978-1599042893

More Books

Students also viewed these Databases questions

Question

2 years financial statement of CIMB Bank Malaysia

Answered: 1 week ago