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
What is static volatile in c?
Is main is user defined function?
What is the collection of communication lines and routers called?
Draw a flowchart to produce a printed list of all the students over the age of 20 in a class .The input records contains the name and age of students. Assume a sentinel value of 99 for the age field of the trailer record
What is the difference between single charater constant and string constant?
How do shell structures work?
What is the use of bitwise operator?
Is c procedural or functional?
What is the difference between near, far and huge pointers?
Why c is called a mid level programming language?
How do you define a string?
What are the general description for loop statement and available loop types in c?
What are structures and unions? State differencves between them.
In C language what is a 'dangling pointer'?
What is the explanation for the dangling pointer in c?