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
Explain what is #line used for?
What does char * * argv mean in c?
How can I invoke another program or command and trap its output?
Where are c variables stored in memory?
What are structure members?
How will you print TATA alone from TATA POWER using string copy and concate commands in C?
What could possibly be the problem if a valid function name such as tolower() is being reported by the C compiler as undefined?
Is file a keyword in c?
What is the use of linkage in c language?
What is cohesion and coupling in c?
what are bit fields? What is the use of bit fields in a structure declaration?
What is integer constants?
Explain how can I convert a number to a string?
Why does everyone say not to use scanf? What should I use instead?
write a program to concatenation the string using switch case?