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
in case any function return float value we must declare a) the function must be declared as 'float' in main() as well b) the function automatically returned float values c) function before declared 'float' keyword d) all the above
What 'lex' does?
Are the outer parentheses in return statements really optional?
Why does notstrcat(string, "!");Work?
Tell us something about keyword 'auto'.
Explain what is a 'null pointer assignment' error? Explain what are bus errors, memory faults, and core dumps?
How can I write functions that take a variable number of arguments?
How can I write a function that takes a format string and a variable number of arguments?
Hai,I have done with my bachelor of commerce and planing to ms,please suggest me how to convince vo for shifting from commerce to computers. Visa on 8 DEC 2014 Npu university
Is javascript written in c?
int main() { Int n=20,i; For(i=0;i<=n;i--) { Printf(“-“); Return 0;
What is c++ used for today?
What is a c token and types of c tokens?
Why do some versions of toupper act strangely if given an upper-case letter?
Declare the structure which contains the following members and write in C list of all students who score more than 75 marks. Roll No, Name, Father Name, Age, City, Marks.