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 we can differentiate between a pre and post increment operators during overloading?
Will the following program execute?
What is the return value of the insertion operator?
Out of fgets() and gets() which function is safe to use and why?
Define anonymous class.
Give 10 points of differences between C & C++.
What does it mean to declare a member variable as static?
What are c++ storage classes?
Can c++ do everything c can?
What is the use of data hiding?
What are static and dynamic type checking?
How do you clear a map in c++?
What is the difference between method overloading and method overriding in c++?
If a function doesn’t return a value, how do you declare the function?
How can I disable the "echo" feature?