Programming-for-Output-Problems
October 6, 2023Operating-Systems
October 6, 2023Programming-for-Output-Problems
Question 34
|
Consider the following declaration:
person.name +2
|
|
kd → (name +2 )
|
|
*((*kd).name + 2 )
|
|
either (a) or (b), but not (c)
|
Question 34 Explanation:
*(kd -> name +2) /* this is wrong statement */
We have to write *((*kd).name+2).
Note: They are specifically asked about a value stored at that location of the string by using “*” outside the brackets. Otherwise, option A and B would be correct.
We have to write *((*kd).name+2).
Note: They are specifically asked about a value stored at that location of the string by using “*” outside the brackets. Otherwise, option A and B would be correct.
Correct Answer: C
Question 34 Explanation:
*(kd -> name +2) /* this is wrong statement */
We have to write *((*kd).name+2).
Note: They are specifically asked about a value stored at that location of the string by using “*” outside the brackets. Otherwise, option A and B would be correct.
We have to write *((*kd).name+2).
Note: They are specifically asked about a value stored at that location of the string by using “*” outside the brackets. Otherwise, option A and B would be correct.
Subscribe
Login
0 Comments