Examples of csharp(c#) with Source code
Examples of c sharp(c#) with SOURCE CODE
Sunday, 22 August 2010
source code for assing values in jagged array
//source code for assing values in jagged array
using System;
class JagDemo
{
static void Main()
{
int[][] arr1 = new int[4][];
arr1[0] = new int[6];
arr1[1] = new int[8];
arr1[2] = new int[7];
arr1[3] = new int[5];
//Assigning values to jagged array
for(int i=0;i
{
for(int j=0;j
arr[i][j] = j + 1;
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment