Question: 1) Write a C program to demonstrate the use of dereferencing operator & and referencing operator *. Satisfying the following, define an integer a=10 and

1) Write a C program to demonstrate the use of dereferencing operator & and referencing operator *. Satisfying the following, define an integer a=10 and a char ch= a; define 2 pointers assigned the addresses of the above variables respectively print out the 2 pointers print out the 2 variable values by the 2 pointers

2)Write a C program to implement the function of the formula y = a*x + b, where a and b are fixed numbers called coefficient and intercept in Math. Heres the programming requirements, please ask the user to enter the values for a and b. define an integer array X with 10 elements in [1, 10] get access to the array by a pointer, and calculate all the y values for each single array element by the formula: y = a*x + b print out all the 10 y values

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!