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
What do you mean by dynamic memory allocation in c? What functions are used?
How do I convert a string to all upper or lower case?
is it possible to create your own header files?
What is c language & why it is used?
Devise a program that inputs a 3 digit number n and finds out whether the number is prime or not. Find out its factors.
What is extern storage class in c?
What is the use of in c?
What is main () in c language?
Why dont c comments nest?
What is c value paradox explain?
What are pointers? What are different types of pointers?
Define the scope of static variables.
the portion of a computer program within which the definition of the variable remains unchanged a) mode b) module c) scope d) none
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.
What are preprocessor directives in c?