Question
Answer the following a. num1 = 48.2; addr = &num1; What is stored in addr? ____ b. using the indirection operator, write expression for the following The variable pointed to by xAddr c. Replace the following reference to a subscripted variable with a pointer reference: As shown below the prices[5] is the 5^th element of array named prices: prices[5] d. Determine if the following expression is true or false: Given a = 6, b = 8, c = 5, evaluate the below expression, if it is true or false: (a=c||c>=b) ___? e. convert the following hexadecimal number into a binary number.
Explanation / Answer
a) addr has the address of the variable num1.
b) The value in the variable pointed to xAddr is *xAddr
c) prices[5] = *(prices+5)
d) a=6,b=8,c=5
a<=b is True
b>=c is True
So a<=b && b>=c is True
So a<=b && b>=c || c>=b is True.