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 a local block?
write a program to create a sparse matrix using dynamic memory allocation.
Explain union. What are its advantages?
What is extern c used for?
What is the difference between struct and typedef struct in c?
please explain every phase in the "SDLC" in the dotnet.
Is c++ based on c?
How do you do dynamic memory allocation in C applications?
Linked list is a Linear or non linear explain if linear how it working as a non linear data structures
Can 'this' pointer by used in the constructor?
Is c still relevant?
What is getche() function?
write a c program to print the next of a particular no without using the arithmetic operator or looping statements?
When should a far pointer be used?
Can i use “int” data type to store the value 32768? Why?