Object Oriented ProgrammingTU Board 2075
Write a member function called reverseit () that reverses a string ( an array of character). Use a for loop that swaps the first and last characters, then the second and next to last characters and…
5Write a member function called reverseit() that reverses a string ( an array of character). Use a for loop that swaps the first and last characters, then the second and next-to last characters and so on. The string should be passed to reverseit() as an argument.
A worked answer is on its wayMeanwhile, read the Object Oriented Programming notes for this topic.
Discussion
Loading…
More Object Oriented Programming questions
A book shop maintains the inventory of books that are being sold at the shop. The list includes details such as author, title, price, publisher and stock…TU Board 208210Define polymorphism? List its advantages, write program to perform basic to user defined data type conversion.TU Board 208210Distinguish between public and private inheritance. Illustrate the chain of constructors and destructors in derived class with an example.TU Board 208210List and describe the characteristics of object oriented programming.TU Board 20825Write any two types of storage class? Write a program to calculate Power (a, b), using default arguments, if second argument is omitted, then calculate square…TU Board 20825Explain copy constructor with an example.TU Board 20825