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 declaration and definition in c?

525


Explain what is the advantage of a random access file?

666


How old is c programming language?

579


write a program for the normal snake games find in most of the mobiles.

1786


What is indirection in c?

628






Can the “if” function be used in comparing strings?

597


Can you please explain the difference between strcpy() and memcpy() function?

602


What is the use of a semicolon (;) at the end of every program statement?

774


Can you explain the four storage classes in C?

644


What is the use of putchar function?

651


What is scope rule in c?

606


Differentiate Source Codes from Object Codes

822


program to convert a integer to string in c language'

1986


differentiate built-in functions and user – defined functions.

628


1) There is a singing competition for children going to be conducted at a local club. Parents have been asked to arrive at least an hour before and register their children’s names with the Program Manager. Whenever a participant registers, the Program Manager has to position the name of the person in a list in alphabet order. Write a program to help the Program Manager do this by placing the name in the right place each time the Program Manger enters a name. The Logic should be written in Data Structures?

1918