Write a C++ program to sort digits of all the 4 digit number
and display the sorted 4 digit number
Answer Posted / prasadnvk
i=0
while(num>0)
{
digit=num%10;
digitarr[i++]=digit;
num=num/10;
}
then sort the digitarr
| Is This Answer Correct ? | 1 Yes | 2 No |
Post New Answer View All Answers
What is a modifier in c++?
Write a recursive program to calculate factorial in c++.
Is c++ high level programming language?
Can user-defined object be declared as static data member of another class?
Which of the following is not a valid declaration for main() a) int main() b) int main(int argc, char *argv[]) c) They both work
Does c++ have arraylist?
what is the use of void main() in C++ language?
What are the various access specifiers in c++?
Does there exist any way to make the command line arguments available to other functions without passing them as arguments to the function?
How can you quickly find the number of elements stored in a static array? Why is it difficult to store linked list in an array?
What is flush () in c++?
What is object file? How can you access object file?
Program to check whether a word is a sub-string or not of a string typed
what is pre-processor in C++?
Difference between overloaded functions and overridden functions