Thanks again for all your work. I greatly enjoy learning through your practical examples.
@PortfolioCourses8 ай бұрын
You're welcome! :-)
@justcurious194010 ай бұрын
Nice explanation , Thanks : int max_value(int array[],int length){ int max = array[0]; for(int i = 1 ; i < length ; i++){ if(array[i] > max) max = array[i]; } return max; }
@kfiruler17427 ай бұрын
one of the best explanation i have ever seen, a BIG THANK YOU sir sir pls make a video on Bits operators coding problems C language
@stavrosv5144 Жыл бұрын
I think that you explained it better than anyone!!! Thank you!!
@PortfolioCourses Жыл бұрын
You’re welcome Stravos, I’m glad you enjoyed the explanation and thank you for the positive feedback! :-)
@khalil49037 ай бұрын
Hi.., i think when you call a the function find_max you don't need to write it size in the settings.. btw thanks for this amazing video..
@neutral._.7726 Жыл бұрын
I have a question how can we show the count of occurrences of the max number .. for example if we entered 10 twice i want my code to write that the max is repeated twice
@PortfolioCourses Жыл бұрын
I think you could do something like this. :-) int find_max(int array[], int length) { int max = array[0]; int count = 0; for (int i = 1; i < length; i++) { if (array[i] > max) { max = array[i]; count = 1; } else if (array[i] == max) { count++; } } printf("Count: %d ", count); return max; }
@sarahajjem56719 ай бұрын
but you basically counted the first one as an assumed max , i think you should do minus 1 at the end @@PortfolioCourses
@souzaneto8051 Жыл бұрын
Friend Which IDE are you using. Editor...? Thanks for your attention.
@theemacsen151810 ай бұрын
He's using Visual Studio Code as his IDE/Editor and the built-in MacOS terminal to compile his program.
@FrostGamingHype2 жыл бұрын
sir im sorry for disturbing but i would like to know if we print anything from the text file in the console window i want to know how can we change the meaning of it example h means q and i means o or u something like this in c++ would really be helpful for my console graphics engine project
@PortfolioCourses2 жыл бұрын
I don't think I understand the question, do you mean replace characters in a string? There is a video on this here that might be helpful: kzbin.info/www/bejne/ZoDNe5Zjht6Xaqc
@FrostGamingHype2 жыл бұрын
@@PortfolioCourses i meant in an text file if we have written A and user wants to display that as O at the same pos or char 219 an solid block without changing whats written in the file so this can we useful in the game engine im working on please help me :D