Question
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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started