2078 10

C Programming20785 marksFinding smallest element using pointers

Write a program to find smallest element of an array using a pointer.

Write a program to find smallest element of an array using a pointer. [5]

--- --- Concept Description ------ ptr = arr Pointer assigned the base address of the array ptr Dereferences pointer to get the value at that address ptr++ Moves pointer to the next array element (next memory location) smallest Stores the minimum value found so far --- 1. Pointer ptr is initializ...

Up nextWrite a program to store and display basic information (Roll, name, address, email. and ph