What's new

C programming

Markyyy2856

Eternal Poster
Established
Joined
May 15, 2019
Posts
676
Solutions
13
Reaction
179
Points
496
pahelp naman po
Write a program that finds the maximum and minimum elements of one dimensional array using pointer version
 
I think it would be best to develop it first and then consult this community if there are errors that you can't fix. In that way, your learning progresses. This difficulty that you are encountering is an opportunity for you to learn rather than allowing someone else to do the work for you. May mga mas mahihirap ka pang kakaharapin at sa tingin ko di ka magiging handa pagka ganito parati attitude mo. In this industry (IT) nothing is constant, you need to work and update constantly to identify solutions to complex problems. Advise lang.. :D
 
Markyyy2856 May sagot na po

Answer:

Adobe Scan Apr 30, 2022 (1)_1.jpg
 

Attachments

Sa alam ko po, hindi po ito pwede dahil pag pointers po ang address lang po ang global pero yung data value hindi po kaya kailangan po na mag return din kayo para maibalik sa Main function ang value.ng nakuha mo sa ibang function. At hindi po pwedeng ma convert ang int to int * (pointer).

Sa akin po meron akong dalawang function pangkuha kay Minimum at ng kay Maximum...

View attachment 1920545

View attachment 1920546
 

Similar threads

Back
Top