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

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

Final contents of arr[]

Answer Posted / sachin

1 2 3 3

Is This Answer Correct ?    1 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

a function gets called when the function name is followed by a a) semicolon (;) b) period(.) c) ! d) none of the above

854


What is a string?

658


How can I automatically locate a programs configuration files in the same directory as the executable?

616


program to convert a integer to string in c language'

1969


Explain the difference between structs and unions in c?

564






What is the stack in c?

709


Explain with the aid of an example why arrays of structures don’t provide an efficient representation when it comes to adding and deleting records internal to the array.

2643


Which is more efficient, a switch statement or an if else chain?

567


What is the use of bit field?

625


What is getch() function?

637


HOW TO SOLVE A NUMERICAL OF LRU IN OS ??????

2256


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

603


What is a scope resolution operator in c?

737


how to write a c program to print list of fruits in alpabetical order?

1776


How does sizeof know array size?

613