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
How a new element can be added or pushed in a stack?
What is fflush c++?
What are the advantages of c++?
How can I learn c++ easily?
What is lambda expression c++?
In int main(int argc, char *argv[]) what is argv[0] a) The first argument passed into the program b) The program name c) You can't define main like that
What do you mean by enumerated data type?
What are the unique features of C++.
What is size of string in c++?
What is function overriding in c++?
What is a singleton class c++?
What does h mean in maths?
What is encapsulation in c++ with example?
Is main a class in c++?
How to defines the function in c++?