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 the piece of code
int a[50];
int *pa;
pa=a;
to access the 6th element of the array which of the
following is incorrect?
a.*(a+5)
b.a[5]
c.pa[5]
d.*(*pa + 5)

Answer Posted / jaya prakash

Answer is D.
It is not a pointer to pointer.So we cannot use two stars.

Is This Answer Correct ?    6 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

cin.ignore(80, _ _);This statement a) ignores all input b) ignores the first 80 characters in the input c) ignores all input till end-of-line d) iteration

1089


What library is sizeof in c?

1071


#include main() { int *p, *c, i; i = 5; p = (int*) (malloc(sizeof(i))); printf(" %d",*p); *p = 10; printf(" %d %d",i,*p); c = (int*) calloc(2); printf(" %d ",*c); }

1039


Compare and contrast compilers from interpreters.

1109


What is wild pointer in c?

1054


Why do we use return in c?

982


What is hashing in c?

1149


What are the advantages of union?

1059


Explain a pre-processor and its advantages.

1120


How can I write functions that take a variable number of arguments?

1114


Which operators cannot be overloaded a) Sizeof b) .* c) :: d) all of the above

1128


How can I read data from data files with particular formats?

1027


Can i use “int” data type to store the value 32768? Why?

1180


What is formal argument?

1120


What is a null pointer assignment error? What are bus errors, memory faults, and core dumps?

1410