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];
}
Q-p
|
|
P+1
|
|
Q-3
|
|
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.
→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.
→Here p and q are two pointers , which consists of two addresses , adding addresses is invalid.
Subscribe
Login
0 Comments