...
Pointers
August 11, 2024
DSSSB TGT 2021
August 11, 2024
Pointers
August 11, 2024
DSSSB TGT 2021
August 11, 2024

Arrays

Question 12
Which of the following statements is INCORRECT with respect to pointers declared in the following ‘C’ language code?

Void main()

Int a[10], *p, *q;

p=&a[5];

q=&a[7];

}

A
Q-p
B
P+1
C
Q-3
D
P+q
Question 12 Explanation: 
→Pointers arithmetic operation is not possible.
→Here p and q are two pointers , which consists of two addresses , adding addresses is invalid.
Correct Answer: D
Question 12 Explanation: 
→Pointers arithmetic operation is not possible.
→Here p and q are two pointers , which consists of two addresses , adding addresses is invalid.
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!!