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 / karthik

void main()
{
int a[50]={1,2,3,4,1,55};
int *pa;
pa=a
printf("%d",*(pa+5));
}

we will the sixth element

its not pointer to the pointer ie *(*pa+5);

Is This Answer Correct ?    38 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Who invented bcpl language?

1201


Why do we use & in c?

1008


What do you understand by normalization of pointers?

1062


Explain what is wrong with this statement? Myname = ?robin?;

1592


How would you obtain the current time and difference between two times?

1296


Write a code to determine the total number of stops an elevator would take to serve N number of people.

1263


What is modifier & how many types of modifiers available in c?

1032


Why doesnt this code work?

1072


Is c++ based on c?

1081


Which programming language is best for getting job 2020?

1055


What is data type long in c?

1078


What does c mean before a date?

1191


What are multibyte characters?

1138


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

1100


What is a stream water?

1229