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
Do character constants represent numerical values?
What does c mean?
How can I trap or ignore keyboard interrupts like control-c?
What is the difference between the local variable and global variable in c?
What is the difference between ++a and a++?
Read the following data in two different files File A: aaaaaaaadddddddd bbbbbbbbeeeeeeee ccccccccffffffff File B: 11111111 22222222 33333333 By using the above files print the following output or write it in the Other file as follows aaaaaaaa11111111dddddddd bbbbbbbb22222222eeeeeeee cccccccc33333333ffffffffffff
What are keywords c?
What are different types of operators?
What are types of functions?
what is the different bitween abap and abap-hr?
How pointer is different from array?
Explain how can I right-justify a string?
Write a program to check whether a number is prime or not using c?
What is the difference between array and linked list in c?
What is the explanation for prototype function in c?