 और स्वाह साध्य उआ� now we have learnt how to find the maximum and second maximum from an array by passing an array into function. लिराई ग़ा बुविया Kashmash, आर्चध ऊदः़ाए़ तो आप ठुए आप. Before starting you can note my information, you can follow or subscribe my youtube channel through the link youtube.com slash tanjaygupta underscore tax school. ज्नदर वाना औब वह ज़ी sawaftnab teche se prugramees which is available on google play. आर आमघ ये ज्मतर, आप नहीक लें香ळolve is closed new program which will clear the code. पोज मेंवाने मैंग्न लें  retrie V. जीबी को सíveis। बुगुूम allegations of code in C programming which will find a maximum and second maximum. after then ,the order will be changed into a program. �ieniaब मैंग्लई मैंग्लई मैंई मैंग्क्छं। जीवाँ अद्व एक और जेदाउ लिए धीवाँ चाल जम लाया की वाँ, एक वाँग पर द्वाँ सब जी दो रत्व, वाँग पर दीवाँ वाँँ वाँँ वाँँ जीह च्यठ करी ने, ये गता लिए जो तो कि लगा गाँ धीवाँ सास्ग, भाँँ च्यीर के वीज ए़िभ ख़ोभ लेख मे�'M premiere so I'm declaring an array और फफादप लेख लेख ख़ोवा लेख वागा लेच � weilग आए। नफ आब भी आद Guinea ऽे निई दिठ उब दोघघ लेग़ेख वग ऊए ध़गं मीिसी पयट तयर भी वाओ मीख केव समत to implement a loop which will repeat 10 times and with the help of scanf i am going to receive 10 elements and those elements will be stored inside a array at different indexes then i am calling max s max function and i am passing an array into it so this statement is function calling so this is the complete definition of main now i am defining max s max function definition so this block will be known as function definition inside this function i am declaring three variables max which will be initialized by three two seven six seven and s max with minus three two seven six eight now i am going to implement a follow this loop will repeat 10 times inside this loop i am going to check whether the array element is maximum or second maximum so first i am implementing a condition a of i greater than max so it is checking whether array element is greater than max or not so if it is true then the current max will become second max so i am assigning max into s max then max equals to a of i so this way i have calculated the maximum value now else if a of i greater than s max so if array element is not greater than max then this condition will be false and control will be transferred to else in else again i am implementing if which is checking array element is greater than s max or not so if array element is greater than second maximum then i have to check that a of i is not equals to max so array element is greater than s max but it is not equals to max then i can assign array element into s max so this way the complete logic is implemented first step is checking maximum and second is second second maximum then after completion of loop i am going to print maximum equals to percent d slash n second maximum equals to percent d and then max comma s max so this way i have implemented the complete program with the help of function now i am going to execute this code sorry here i have to use void because return type of function is void one more mistake i have to use semicolon after closing bracket now it is working properly i am entering 10 different numbers you can see the output maximum is 10 and second maximum is 9 so program is working properly it has identified the smallest sorry largest number which is available in array and second largest number which is available in array so i i hope you have understood the code well i have passed an array into function and then i have found out the maximum and second maximum value which is available in array if you want to watch more programming related videos you can follow or subscribe my youtube channel through the url youtube.com slash sanjay gupta underscore tax school you can download my programming app tachymus which is available on google play thank you for watching this video