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

int arr[] = {1,2,3,4}
int *ptr=arr;

*(arr+3) = *++ptr + *ptr++;

Final contents of arr[]

Answer Posted / vijaisankar

In this statement
first ptr holds base address of the array(4000),
then as per precedence operators ptr gets post incremented
(4002)though it points the value 1(4000)(ptr is post
incremented) and then ptr gets preincrement so (4004) the
value in that one is 3 then 3+1=4.
*(arr+3)=3;

Is This Answer Correct ?    2 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the process of converting a Tree into a Binary Tree.

2607


How do we make a global variable accessible across files? Explain the extern keyword?

1827


What is the use of pointers in C?

1023


any C program contains only one function, it must be a) void () b) main () c) message () d) abc ()

1074


How to check whether string is a palindrome, WITHOUT USING STRING FUNCTIONS?

16589


What is ## preprocessor operator in c?

1024


How do I round numbers?

957


What is the use of the function in c?

970


Do you know what are bitwise shift operators in c programming?

1058


What extern c means?

931


What's the right way to use errno?

1086


hi send me sample aptitude papers of cts?

2105


A collection of functions,calls,subroutines or other data a) library b) header files c) set of files d) textfiles

1118


explain what is a newline escape sequence?

1039


When is a void pointer used?

1191