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
if (i = 0)printf ("True"); elseprintf("False"); Under what conditions will the above print out the string "True" a) Never b) Always c) When the value of i is 0 d) all of the above
What are header files and explain what are its uses in c programming?
What is spaghetti programming?
What are the types of variables in c?
write a program that reads lines(using getline), converts each line to an integer using atoi, and computes the average of all the numbers read. also compute the standard deviation.
in multiple branching construct "default" case is a) optional b) compulsarily c) it is not include in this construct d) none of the above
What are the different categories of functions in c?
please explain clearly about execution of c program in detail,in which stage are the printf sacnf getting into exeecutable code
What is a list in c?
What is indirection?
Was 2000 a leap year?
What does != Mean in c?
What do you mean by dynamic memory allocation in c?
What is the use of sizeof?
hello freinds next week my interview in reliance,nybody has an idea about it intervew questions..so tell