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 #include cmath?
What are associate containers?
Differentiate between an external iterator and an internal iterator? What is the advantage of an external iterator.
What are smart pointers?
Write a Program for find and replace a character in a string.
Explain linear search.
How to give an alternate name to a namespace?
Can we distribute function templates and class templates in object libraries?
What are guid?
What is the full form nasa?
Why do we learn c++?
Define pre-condition and post-condition to a member function in c++?
What is atoi?
Explain the term memory alignment?
Explain the concept of memory leak?