43

We are currently doing procedural programming in an OOP language. "Only write code inside the main function" Here, have my bubble-sort function in your face.

Comments
  • 1
    Does your language have functions as first-class citizens? Then you can probably cheat and define new functions inside the main one.

    ..you did that, didn't you?
    Or is your bubble sort OUTSIDE the main function?
  • 0
    @-xlf Outside the main function :)
Add Comment