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 / fazlur rahaman naik
d is the right answer.
| Is This Answer Correct ? | 19 Yes | 2 No |
Post New Answer View All Answers
What are the types of arrays in c?
What is typedef example?
What is extern storage class in c?
What is a stream water?
How do you determine the length of a string value that was stored in a variable?
Why cant I open a file by its explicit path?
how to print the character with maximum occurence and print that number of occurence too in a string given ?
What is define directive?
Do pointers take up memory?
What are local variables c?
How do you define a string?
What is the difference between a function and a method in c?
Why do we use namespace feature?
printf(), scanf() these are a) library functions b) userdefined functions c) system functions d) they are not functions
What is a structure and why it is used?