C Program To Find Smallest Element in An Array using Pointers

preview_player
Показать описание

Write a c program using pointers to find the smallest number in an array of 25 integers.

Pointers: A pointer variable is a variable which holds the address of another variable, of its own type.

Important Note:
1. Array elements are always stored in contiguous memory location.
2. A pointer when incremented always points to an immediately next location of its own type.

Example: Expected Output
Enter 5 integer numbers
1
5
5
0
2
Smallest Element In The Array: 0

C Programming Interview / Viva Q&A List

C Programming: Beginner To Advance To Expert

Join this channel to get access to perks:
Рекомендации по теме
Комментарии
Автор

Good efforts man, you came top of G search, and it was helpful also. Friend dont worry about subscribers or views. Do more, all will support u.

rajagopalan
Автор

Nice graphics + nice concept explaination + code+ website

rajagopalan
Автор

if i add another if block for finding largest number, it doesn't show the largest number. it just shows the smallest and largest number a same number....why sir?? could u explain briefly?

lakshmipriyas
Автор

Please find max. And min. no. In a 2D array using pointer

shubhamjoshi
join shbcf.ru