...
Programming-for-Output-Problems
October 6, 2023
Operating-Systems
October 6, 2023
Programming-for-Output-Problems
October 6, 2023
Operating-Systems
October 6, 2023

Programming-for-Output-Problems

Question 31
Consider the following declaration:

A
person.name +2
B
kd → (name +2 )
C
*((*kd).name + 2 )
D
either (a) or (b), but not (c)
Question 31 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.
Correct Answer: C
Question 31 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.
0 0 votes
Article Rating
Subscribe
Notify of
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x
error: Alert: Content selection is disabled!!