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...

main()
{
int ptr[] = {1,2,23,6,5,6};
printf("%d",&ptr[3]-&ptr[0]);
}

Answer Posted / baba

Ans: 12

The expression in printf evaluates the difference of the memory addresses of ptr[3] and ptr[0]

Is This Answer Correct ?    5 Yes 10 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is structure in c explain with example?

1143


Explain the array representation of a binary tree in C.

1208


disply the following menu 1.Disply 2.Copy 3.Append; as per the menu do the file operations 4.Exit

2058


Explain how do you override a defined macro?

1054


What are the benefits of c language?

1158


How variables are declared in c?

1024


What is methods in c?

1066


why to assign a pointer to null sometimes??how can a pointer we declare get assigned with a garbage value by default???

1949


How reliable are floating-point comparisons?

1076


can we have joblib in a proc ?

2282


How can I write data files which can be read on other machines with different word size, byte order, or floating point formats?

1015


Why void main is used in c?

1040


int i=3; this declaration tells the C compiler to a) reserve space in memory to hold the integer value b) associate the name i with this memory location c) store the value 3 at this location d) all the above

1272


What does volatile do?

974


Explain void pointer?

1024