Sample Code 1 chart aL = nullptr; aL = new char; Line 1 1/ 3 Sample Code 1 - Wha
ID: 3709204 • Letter: S
Question
Sample Code 1 chart aL = nullptr; aL = new char; Line 1 1/ 3 Sample Code 1 - What is aL after Line 1 has been executed? 1 point ?aL is pointing to someplace unknown ?aL is a pointer with a zero address aL has an Address, but its target memory does not have a known value aL has an Address, and its target memory does have a known value. None of the above Sample Code 1 - What is aL after Line 2 has been executed? 1 point ?aL is pointing to someplace unknown OaL is a pointer with a zero addres:s O aL has an Address, but its target memory does not have a known value. O aL has an Address, and its target memory does have a known value. O None of the above.Explanation / Answer
We are required to do only 4 parts of a question .
Sample code 1a. The null pointer is a pointer that intentionally points to nothing so after execution of first line of code the value of al is al is pointing to someplace unknown
1b. Since pointer is pointing to something as al is a pointer that points to something hence al has an address but it's target memory doesn't have a known value
1c. Al has an address but it's target memory does have a known value which is value of char 'x'
Sample code 2a. For changing value of Flute we have to make changes in the value of Flute so for value of. Flute to be 1 the statements Flute = 1 and Flute++ are valid statements
Sample code 3a. For assigning address value to a variable '&<value>' this criteria is used so &intData is correct
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.