a Ans .Question 1) TRUE OR FALSE: WRITE CLEARLY: NO ABBREVIATIONS -[11] Answer t
ID: 3738646 • Letter: A
Question
a Ans .Question 1) TRUE OR FALSE: WRITE CLEARLY: NO ABBREVIATIONS -[11] Answer the following clearly (TRUE or FALSE) a) The address(8) operator refers to memory location where operand is stored b) The indirection (*) operator refers to the value of stored operand c) Accessing an operand through pointers involves more processing time than direct access b. Ans. C Ans d. Ans_ d) String function isalpha' returns non-logic 0 for a character input e) Expression [ (x cy) && ( x >b) ] is false, if bis larger than y e Ans .) Stack has the property of First In - Last Out 1 Ans --- -8) Character Array X initialized to {a,b, c, d, e, f, g, h, 1, j, k, l, m}; Pointer Xptr refers to the first element of X array and has a value 124FFBC, Each element is represented by 16 bit uni-code. Memory is byte organized. What are the address locations of elements: C, f, and m in the above? Specify in the hex decimal notation Hex Address of elements C---- .Question 21 Machine D i Ihly 97 97 ond en casaExplanation / Answer
Question 1
a) TRUE [& operator refers to memory location of operand]
b) TRUE [* operator refers to the value ]
c) FALSE [accessing through pointers are much faster]
d) FALSE [isalpha returns non-zero value for alphabets and 0 otherwise]
e) FALSE [The expression can be interpreted as b < x && x < y, so if b > y, then the the expression will be false because b < x will be false]
f) TRUE [stack has property of first in last out]
g) hex address of elements [each character takes 2 bytes for 16-bit representation]
for c : 0x124FFC0 (offset 4 from base address)
for f : 0x124FFC6 (offset 10 from base address)
for m : 0x124FFD4 (offset 24 from base address)
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.