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 / fazlur rahaman naik

d is the right answer.

Is This Answer Correct ?    19 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how can i access hard disk address(physical address)? are we access hard disk by using far,near or huge pointer? if yes then please explain.....

1785


Why is c platform dependent?

1076


When should you use a type cast?

1112


What are compound statements?

1160


What is the use of function overloading in C?

1153


pgm to find any error in linklist(in single linklist check whether any node points any of previous nodes instead of next node)

2633


What is void pointers in c?

993


What is array of structure in c?

1160


Can you mix old-style and new-style function syntax?

1090


Which function in C can be used to append a string to another string?

1206


writ a program to compare using strcmp VIVA and viva with its output.

2004


What language is lisp written in?

1244


Can we use visual studio for c?

1068


Why can arithmetic operations not be performed on void pointers?

1023


5 Write an Algorithm to find the maximum and minimum items in a set of ā€˜n’ element.

2095