Given a piece of code
int x[10];
int *ab;
ab=x;
To access the 6th element of the array which of the
following is incorrect?
(A) *(x+5) (B) x[5] (C) ab[5] (D) *(*ab+5} .
Answer Posted / pradeep
answer: D(invalid indirection)
| Is This Answer Correct ? | 17 Yes | 1 No |
Post New Answer View All Answers
Tell me when would you use a pointer to a function?
why arguments can generally be passed to functions a) sending the values of the arguments b) sending the addresses of the arguments c) a & b d) none of the above
Why isnt any of this standardized in c?
the portion of a computer program within which the definition of the variable remains unchanged a) mode b) module c) scope d) none
What is variables in c?
What is the use of clrscr?
Can math operations be performed on a void pointer?
How can I recover the file name given an open stream?
When should structures be passed by values or by references?
How can I find out the size of a file, prior to reading it in?
What is the value of a[3] if integer a[] = {5,4,3,2,1}?
What do you mean by Recursion Function?
What are pointers?
What is the difference between new and malloc functions?
Explain what are the different file extensions involved when programming in c?