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 / shivangi
c is the wrong answer
| Is This Answer Correct ? | 0 Yes | 5 No |
Post New Answer View All Answers
In C language, a variable name cannot contain?
Explain what are the different data types in c?
Explain what is the best way to comment out a section of code that contains comments?
What is the advantage of using #define to declare a constant?
What is the maximum length of an identifier?
What is scanf_s in c?
Write a code to determine the total number of stops an elevator would take to serve N number of people.
What is a 'null pointer assignment' error? Explain what are bus errors, memory faults, and core dumps?
What is the difference between c and python?
What are shell structures used for?
What is the use of sizeof () in c?
What is a list in c?
‘ C’ PROGRAME TO SHOW THE TYPE OF TRANGLE BY ACCEPTING IT’S LENGTH .
What is character constants?
How arrays can be passed to a user defined function