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
Will this c++ program execute or not?
What is long in c++?
Are there any special rules about inlining?
What are static and dynamic type checking?
Why Pointers are not used in C++?
What is a breakpoint?
What is the best c++ compiler?
What is flush programming?
What is the difference between C and CPP?
Explain how a pointer to function can be declared in C++?
Can I learn c++ without c?
Can we distribute function templates and class templates in object libraries?
Can member data be public?
Write a c program for binary addition of two 8 bit numbers.
What causes a runtime error c++?