C# Array Exercise

In this chapter you will learn:

  • How to solve programming problem using array?
Qu1: Write a program to copy one array’s elements to another array without using array function.
Qu2: Reverse a string using array.

Hint: accept string value and store in a string variable str. Then convert str into array as follows:

char[] ch=str.ToCharArray;


In this chapter you learned how to solve programming problem using array. In the next chapter you will learn the most important topic of C# – Exception Handling


More Examples


3 thoughts on “C# Array Exercise”

  1. using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;

    namespace Array_Class
    class Reverse

    static void Main(string[] args)
    string str;
    Console.Write(“Enter String : “);
    char[] ch = str.ToCharArray();

    foreach (char cha in ch.Reverse())

Leave a Reply

Your email address will not be published. Required fields are marked *