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

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

Final contents of arr[]

Answer Posted / vignesh1988i

1 2 3 5

Is This Answer Correct ?    2 Yes 10 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can I change their mode to binary?

690


How do you sort filenames in a directory?

708


How to declare pointer variables?

683


What is indirection? How many levels of pointers can you have?

654


Is array a primitive data type in c?

573






Can you tell me how to check whether a linked list is circular?

763


Write a c program to build a heap method using Pointer to function and pointer to structure ?

4173


Take an MxN matrice from user and then sum upper diagonal in a variable and lower diagonal in a separate variables. Print the result

1467


How will you declare an array of three function pointers where each function receives two ints and returns a float?

773


write a c program in such a way that if we enter the today date the output should be next day's date.

1677


What is a 'null pointer assignment' error? Explain what are bus errors, memory faults, and core dumps?

727


‎How to define structures? · ‎

622


Explain can static variables be declared in a header file?

674


a linearly ordered set of data elements that have the same structure and whose order is preserved in storage by using sequential allocation a) circular b) ordinary c) array d) linear list

631


How many header files are in c?

547