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

What is local and global variable in c?

612


Is c procedural or object oriented?

573


What is variable in c example?

590


Write a code to generate divisors of an integer?

633


What are global variables and how do you declare them?

612






what is associativity explain what is the precidence for * and & , * and ++ how the folloing declaration work 1) *&p; 2) *p++;

1879


Can a function argument have default value?

668


What is null character in c?

684


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

2094


What is the difference between exit() and _exit() function?

598


What are the application of void data type in c?

690


Is c++ based on c?

644


Why header files are used?

642


Are negative numbers true in c?

595


Explain what is a const pointer?

634