What is a subroutine What is a processor stack What is a b
What is a subroutine?
• What is a processor stack?
• What is a bubble sort?
Solution
subroutine :we use subroutines in a computer program by using the sequence of program instructions wich performs a specific task, packaged as a single unit. whenever we want to do the task,we have to execute the subroutine required by it.
bubble sort: sorting in general means arranging the numbers in order.arrangement can be ascending or descending.It is done by comparing the number under consideration with the next element.If valid,then exchanges elements,otherwise compares the next numbe.it works in passes and each pass number goes on getting sorted.
processor stack:it is a type of CPU register whose purpose is to keep track of a call stack
