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
Is the exit() function same as the return statement? Explain.
Why do we need arrays in c?
List the variables are used for writing doubly linked list program.
Explain what is the difference between text files and binary files?
HOW TO SOLVE A NUMERICAL OF LRU IN OS ??????
What is table lookup in c?
Where does the name "C" come from, anyway?
How can you restore a redirected standard stream?
What is the use of bit field?
Can you define which header file to include at compile time?
Is it fine to write void main () or main () in c?
Do you know what are bitwise shift operators in c programming?
Is there a built-in function in C that can be used for sorting data?
What happens if you free a pointer twice?
How can you tell whether two strings are the same?