24 Replies
Program Class
$refvsvalue
could you please explain?
My mistake, it is passed as reference already because it is an array.
is it not modified by the bubblesort.bubbleascend?
in the sorting class correct?
Try it and see
oki
How do we run c# code using the bot?
!e code here
code is still only printing the word "ascending"
Will you please check if you have any errors?
vs says no issues found
Visual studio has a stupid feature that runs old build if current one fails to build.
ive ran it twice still no problems
wait
i found the problem
Great!
the problem was i had Console.ReadKey(); in the sorting algorithm
runs without ref aswell
ty for the help brother
Buddy
My mistake, it is passed as reference already because it is an array.
Quoted by
<@203166497198047232> from #Sorted Array not Printing (click here)
React with ❌ to remove this embed.
Arrays are reference types, so you don't need to pass it as ref
sweet ty
how do i close the post?
$close
Use the /close command to mark a forum thread as answered
Just type
/close
🙂tyty