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

What do you mean by dynamic memory allocation in c? What functions are used?

647


How do I convert a string to all upper or lower case?

624


is it possible to create your own header files?

631


What is c language & why it is used?

574


Devise a program that inputs a 3 digit number n and finds out whether the number is prime or not. Find out its factors.

663






What is extern storage class in c?

509


What is the use of in c?

570


What is main () in c language?

590


Why dont c comments nest?

613


What is c value paradox explain?

567


What are pointers? What are different types of pointers?

622


Define the scope of static variables.

596


the portion of a computer program within which the definition of the variable remains unchanged a) mode b) module c) scope d) none

639


When I tried to go into a security sites I am denied access and a message appeared saying 'applet not initialize'. How can I rectify this problem.

1526


What are preprocessor directives in c?

630