convert 12345 to 54321 withoutusing strig

Answer Posted / pavan kumar b n

By making use of stack data structure.... i.e., first push
all the numbers and then pop them .. since stack is LIFO
order , the numbers get reversed....

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is string constants?

755


What is difference between structure and union with example?

696


How can a program be made to print the name of a source file where an error occurs?

840


What are the differences between Structures and Arrays?

713


Explain goto?

804






What is indirection in c?

707


Why enum is used in c?

622


PROGRAM TO WRITE CONTENTS OF 1 FILE IN REVERSE TO ANOTHER FILE,PROGRAM TO COPY 1 FILE TO ANOTHER BY SPECIFYING FILE NAMES AS COMMAND LINE

1567


What is array in C

807


a formula,a series of steps,or well defined set of rules for solving a problem a) algorithem b) program c) erdiagram d) compiler

712


What is the difference between formatted&unformatted i/o functions?

713


Is there a way to jump out of a function or functions?

747


What is #define?

684


Explain what could possibly be the problem if a valid function name such as tolower() is being reported by the c compiler as undefined?

681


an expression contains relational operators, assignment operators, and arithmatic operstors. In the absence of parentheses, they will be evaluated in which of the following order a) assignment, relational, arithematic b) arithematic, relational, assignment c) relational, arithematic, assignment d) assignment, arithematic, relational

932