Write a C++ program to sort digits of all the 4 digit number
and display the sorted 4 digit number



Write a C++ program to sort digits of all the 4 digit number and display the sorted 4 digit number..

Answer / 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

More C++ General Interview Questions

What is the most common mistake on c++ and oo projects?

0 Answers  


Is java a c++?

0 Answers  


What is the best c c++ compiler for windows?

0 Answers  


Is c++ proprietary?

0 Answers  


What are separators in c++?

0 Answers  






What is time_t c++?

0 Answers  


what are function pointers?

0 Answers  


How Virtual functions call up is maintained?

2 Answers  


What is encapsulation in c++?

0 Answers  


What is the basic of c++?

0 Answers  


How can I improve my c++ skills?

0 Answers  


Explain one-definition rule (odr).

0 Answers  


Categories