Skip to main content

Posts

Class 12 Array(Remaining Parts)

Jagged Array in C# What is a Jagged Array? A Jagged Array is an array of arrays . Each element of the main array is another array. A jagged array is an array whose elements are arrays. Unlike a multidimensional array, each row can have a different number of elements . Simple Diagram Each row contains a different number of elements. Features of Jagged Array It is an array of arrays . Each row can have a different length . It is useful for storing uneven or irregular data . It uses memory efficiently because each row is created only with the required size. Declaration A jagged array is declared using two square brackets ( [][] ) . int [][] jaggedArr = new int [ 3 ][]; Explanation int[][] → Jagged array of integers. new int[3][] → Creates a main array with 3 rows . The rows are created, but their sizes are not assigned yet . Initializing a Jagged Array Method 1: Initialize Row by Row int [][] jaggedArr = new int [ 3 ][]; jaggedArr [ 0 ] = new int [ 2 ]; jaggedArr [ 1 ] = n...
Recent posts

Unit 4 Software development Models (Class 12 SEP)

   Software development Model Software development models are various processes or methods that are chosen for project development depending on the objectives and goals of the project. Many development life cycle models have been developed to achieve various essential objectives. Models specify the various steps of the process and the order in which they are executed. The few software development models are discussed below: Waterfall Model (SDLC Model) The Waterfall Model is a traditional software development model in which the project is developed in sequential phases . Each phase must be completed before moving to the next phase , and there is usually no going back once a phase is completed. It is one of the earliest SDLC (Software Development Life Cycle) models . 1. Features of Waterfall Model Sequential Phases: Development progresses in a fixed order: Requirements → Design → Implementation → Testing → Deployment → Maintenance Clear Documentation: Each phase produces f...