Data organized in ascending or descending order is called stacking data. Stacking data is usually organized by number or by alphabet.
Chat with our AI personalities
The Data organized is ascending or descending order is called stacking data. It is one of the most important data structures in computer science.
Any data that is keyed to a numeric or text field may be sorted in ascending or descending order. Data that is keyed to a date may be sorted in chronological order (ascending with oldest first) or reverse-chronological order (descending order with newest first). Data that is keyed to a price may be sorted with most-expensive first (descending order) or least-expensive first (ascending order). Data that is keyed to a weight may be sorted in ascending or descending order of weight. And so on.
Writeln('variable[counter]':asc{or desc}); Easy as pie:)
sorting means arranging a list of numbers or elements in an order (ascending or descending).
A scalar variable can hold only one piece of data at a time. So in C, C++ and Java scalar data types include int, char, float and double, along with others. Scalar variables of the same type can be arranged into ascending or descending order based on the value. Prasangax
usually, the keyboard.