nvk prasad


{ City } hyderabad
< Country > india
* Profession * se
User No # 74915
Total Questions Posted # 0
Total Answers Posted # 1

Total Answers Posted for My Questions # 0
Total Views for My Questions # 0

Users Marked my Answers as Correct # 1
Users Marked my Answers as Wrong # 2
Questions / { nvk prasad }
Questions Answers Category Views Company eMail




Answers / { nvk prasad }

Question { TCS, 5403 }

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


Answer

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