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


Please Help Members By Posting Answers For Below Questions

Can 'this' pointer by used in the constructor?

613


Explain how can type-insensitive macros be created?

570


When c language was developed?

638


If null and 0 are equivalent as null pointer constants, which should I use?

577


What is scope of variable in c?

567






What is ponter?

771


Tell me when is a void pointer used?

648


what does static variable mean?

655


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

675


write a c program thal will find all sequences of length N that produce the sum is Zero, print all possible solutions?

2412


What functions are in conio h?

658


Explain how can I read and write comma-delimited text?

654


I need previous papers of CSC.......plz help out by posting them.......

1816


What are void pointers in c?

574


Explain continue keyword in c

586