Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Q1. State true or false: [5 marks] a. A pointer is a variable that stores address of other variable b. Are the expression *ptr++ and
Q1. State true or false: [5 marks] a. A pointer is a variable that stores address of other variable b. Are the expression *ptr++ and +ptr are same? C. Functions cannot return more than one value at a time d. A function may have any number of return statements each returning different values. I arrays with 10 elements require the same amount of memory, regardless of the type of elements stored in the array Q2. Find the correct alternative: [6 marks] #include A. int main() intr, p, i-8 p=80 q = &p; r = &q: printf("%d, %d, %d ", *p, **q, return 0 r); 1) 888 2) 34 6 3) 8 10 20 4) None #include-stdio.h> int main() int arr[2][2-110, 2, 3, 4 int *p, *q; p = &arr[1][1]; printf("%d, %d ", *p, *q); return 0 1) 88 2) 10 10 3) 4 10 4) None
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