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

Why is #define used?

1275


What are the advantage of c language?

1052


How can I generate floating-point random numbers?

1130


What are the restrictions of a modulus operator?

1121


Explain can the sizeof operator be used to tell the size of an array passed to a function?

1068


What is header file in c?

1069


What are the data types present in c?

1163


What is pass by value in c?

1067


What is the condition that is applied with ?: Operator?

1129


What is volatile, register definition in C

1105


How is actual parameter different from the formal parameter?

1024


What is hashing in c language?

1308


largest Of three Number using without if condition?

1598


how do you write a function that takes a variable number of arguments? What is the prototype of printf () function?

1936


string reverse using recursion

2464