given the piece of code
int a[50];
int *pa;
pa=a;
to access the 6th element of the array which of the
following is incorrect?
a.*(a+5)
b.a[5]
c.pa[5]
d.*(*pa + 5)
Answer Posted / jaya prakash
Answer is D.
It is not a pointer to pointer.So we cannot use two stars.
Is This Answer Correct ? | 6 Yes | 1 No |
Post New Answer View All Answers
Can 'this' pointer by used in the constructor?
Explain how can type-insensitive macros be created?
When c language was developed?
If null and 0 are equivalent as null pointer constants, which should I use?
What is scope of variable in c?
What is ponter?
Tell me when is a void pointer used?
what does static variable mean?
what are the advanced features of functions a) function declaration and prototypes b) calling functions by value or by reference c) recursion d) all the above
write a c program thal will find all sequences of length N that produce the sum is Zero, print all possible solutions?
What functions are in conio h?
Explain how can I read and write comma-delimited text?
I need previous papers of CSC.......plz help out by posting them.......
What are void pointers in c?
Explain continue keyword in c