Question: QUESTION 2 (a) Explain how string is stored in memory. [2 marks] (b) List TWO (2) usages of pointer and explain the difference between variable

QUESTION 2 (a) Explain how string is stored in memory. [2 marks] (b) List TWO (2) usages of pointer and explain the difference between variable and pointer. [4 marks) (c) Write a C program to add two integers using pointer. [5 marks) (d) Write a function find_average () which takes three floating-point numbers x, y and z as the arguments, and return the average value. Show how to call the function in a program [8 marks) (e) Write a program to print individual characters of string in reverse order. [6 marks)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
