Friday, 30 March 2018
String Reverse related questions in C# which is frequently ask in the interview
03:22
No comments
Q How to reverse a string in C# using predefined method ToCharArray()
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ReverseStringConcept
{
class Program
{
static void Main(string[] args)
{
string strInput = null, strOutput = null;
Console.WriteLine("enter a string to revers");
strInput = Console.ReadLine();
char[] charInput = strInput.ToCharArray();
for...
Subscribe to:
Posts (Atom)