Sunteți pe pagina 1din 1
Tutorial You cannot use book, copy. mobile and internet. Each question has 30 minutes time. Assume that a two-dimensional array 'A' of type int and of size 3 x 3 has been initialized Using pointers, display the addresses of its elements and the contents of these addresses row- wise ‘Write a program that takes the size n of an asray from the user. It then dynamically creates an array of size n and type int. It should prompt the user to input n values (of type int) which are then stored in the array Write a fimetion that uses pointers to search for the address of a given integer in the above given amay. If the given integer is found, the function retums its address; otherwise it retumns NULL. ‘You are requited to write a function for linear interpolation. The function is passed arrays of x and y data of type double and size N. The fimction is also passed a double variable xe, for which the function finds appropriate value ye throngh linear interpolation and returns it to the main program.

S-ar putea să vă placă și