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

Explain what is #line used for?

610


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

1797


Draw a diagram showing how the operating system relates to users, application programs, and the computer hardware ?

2124


What are the different types of data structures in c?

610


How can I pad a string to a known length?

614






a value that does not change during program execution a) variabe b) argument c) parameter d) none

699


What is the advantage of a random access file?

642


a number whose only prime factors are 2,3,5, and 7 is call humble number,,write a program to find and display the nth element in this sequence.. sample input : 2,3,4,11,12,13, and 100.. sample output : the 2nd humble number is 2,the 3rd humble number is 3,the 4th humble number is ,the 11th humble number is 12, the 12th humble number is 14, the 13th humble number is 15, the 100th humble number is 450.

4545


What is data types?

643


Define the scope of static variables.

608


What is "Duff's Device"?

703


What are the advantages of external class?

598


There is a practice in coding to keep some code blocks in comment symbols than delete it when debugging. How this affect when debugging?

827


7-Given an index k, return the kth row of the Pascal's triangle. For example, when k = 3, the row is [1,3,3,1]. For reference look at the following standard pascal’s triangle.

2226


How does placing some code lines between the comment symbol help in debugging the code?

550