Question: Exercises 1. Create an array and print memory addresses of elements of the array. 2. Get an integer value from user by using scanf. 3.

Exercises 1. Create an array and print memory addresses of elements of the array. 2. Get an integer value from user by using scanf. 3. Create a NULL pointer, then assign some values to it. 4. Create two different integer by using pointers. Swap these two vari- ables without using any other variable. Example, a = 2,b=5 a=5,b=2. 5. Allocate and de-allocate an integer array by using malloc, and free. Problems 1. Get inputs from user and calculate the average of the given values. 2. Implement Newton's method for calculating square root of 2
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
