Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

Tell me when would you use a pointer to a function?

1055


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

1123


Why isnt any of this standardized in c?

1075


the portion of a computer program within which the definition of the variable remains unchanged a) mode b) module c) scope d) none

1053


What is variables in c?

1050


What is the use of clrscr?

1103


Can math operations be performed on a void pointer?

1043


How can I recover the file name given an open stream?

1007


When should structures be passed by values or by references?

1036


How can I find out the size of a file, prior to reading it in?

1170


What is the value of a[3] if integer a[] = {5,4,3,2,1}?

1087


What do you mean by Recursion Function?

1122


What are pointers?

1104


What is the difference between new and malloc functions?

1122


Explain what are the different file extensions involved when programming in c?

1107