Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C language simple questions 1: Use this snippet of code to answer the question below: int multi_array[2][6] = {{10000, 2, 3, 9, 10, 10}, {7,

C language simple questions

1:

Use this snippet of code to answer the question below:

int multi_array[2][6] = {{10000, 2, 3, 9, 10, 10}, {7, 8, 9, 9, 1999, 0}}; int size = sizeof(multi_array);

What is the value of size?

2:

Use this snippet of code to answer the question below:

int x, *p = &x;

x = 100; p = p * 2;

printf("The value of x is %d. ", x);

What is the output? (And why?)

3:

Assume you have declared a multi-dimensional array char ma[5][30]. What is the address of the element "ma[0][0]"? Use two (2) different ways to assign the address to a new pointer variable, p. (Do not give a concrete address for ma[0][0] - this will vary each time the program is run, based on the memory allocated.)

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 Systems A Practical Approach To Design Implementation And Management

Authors: THOMAS CONNOLLY

6th Edition

9353438918, 978-9353438913

More Books

Students also viewed these Databases questions

Question

What is the difference between a floating lien and a trust receipt?

Answered: 1 week ago

Question

What were your most important educational experiences?

Answered: 1 week ago

Question

How was your life influenced by those events?

Answered: 1 week ago

Question

Which of these influenced your life most dramatically?

Answered: 1 week ago