Program of reversing array - c# program, DOT NET Programming

Program of Reversing Array - C# Program

Please provide me assignment help regarding my problem.

 

Posted Date: 2/12/2013 1:30:28 AM | Location : United States





Code:

using System;

public class ReverseArray

{

  public string Reverse(params string [] arr)

 {

   string [] j;

   string [] k;  

  Console.Write("The array list without reversing is : ");

   foreach (int i in arr)

  {

   Console.Write(" "+i);

   j = new string[i]; // Save all the contents in the array ''j''

   i++;

  }    

   for (int a = 0; a < j.Length ; a ++)

  {

   k[a] = j[a]; // Saving the array in another array

  }  

   for (int i = 0; i < j.Length ; i++)

  {

   j[i] = k[k.Length]; // Here we are reversing the array elements

   k.Length --;

  }  

  Console.Write("The reversed array now has : ");  

   foreach (int i in j)

  {

   Console.Write(" "+j); // Print the elements of the array ''j''

   i++;

  } } }

Posted by james | Posted Date: 2/12/2013 1:31:19 AM

thank you.

Posted by Jacob | Posted Date: 2/12/2013 1:31:41 AM


Related Discussions:- Program of reversing array - c# program, Assignment Help, Ask Question on Program of reversing array - c# program, Get Answer, Expert's Help, Program of reversing array - c# program Discussions

Write discussion on Program of reversing array - c# program
Your posts are moderated
Related Questions
What are the modes of storing ASP.NET session? 1) InProc: - In InProc mode Session state is stored in the memory space of the Aspnet_wp.exe process. That is the default setti

I need Windows 8.1 Project, Asset management slate App Project Description: We are seeking a Windows 8 app developer with PROVABLE experience to prepare a project and asset m

What is a cloud? A cloud is a combination of hardware, storage, networks, services, and interfaces that helps in delivering computing as a service. It has generally three users

Can you define what inheritance is and an example of when you might use it? The process of deriving a new class from an existing class is known as Inheritance. The old class is

What is the difference between "using System.Data;" and directly adding the reference from "Add References Dialog Box"? When you compiles a program using command line, u add th

What is normalization & what are the types of normalization? Normalization is a set of rules that have been established to aid in the design of tables that are meant to be conn

Want C# Single User Login per session Project Description: I need to save simulatenious logins for one account such as one user has a spottily premium account and someone tri

Project Description: I am trying to connect my marketplace website with Stripe/connect. I have 5 or 6 scripts already written that just need to be adjusted so they will work: 2

Explain in brief DataAdapter class in ADO.NET. The DataAdapter class retrieves data from the database, keeps data in a dataset, and reflects the changes made in the dataset to

VB.net Rewrite and Redirect Rules using CodeBehind Project Description: Need VB.net programmer to make some (hopefully) minor code edits to resolve some site issues. I will p