array in c programming with examples

Two Dimensional Array In Hindi – Array In C Hindi

C

Two Dimensional Array In Hindi2D Array In C In Hindi:- In This Post, I Will Show You 2 Dimensional Array In C With Example In Hindi |

What is Array in Hindi:- Array Ek same data type Ke variables ka collection Hota Hain. For Example:- Int, Char, etc |

Two Dimensional Array In Hindi

Array ko Isliye Istemal Karte hai agar Kisi Ek student ka sab data stored Karna ho to Keval ham array ki help Se Keval Ek hi variable Banayenge.

For Example :-
char stud1 = “Danish” , stud2 = “azhar”, stud3 = “Ali” ;

  • Array ka data type koi sa bhi ho sakta hai.
  • Array ke variables Aapne pass wale memory location par stored Hota hain.
  • Array ka pahla value 0 se start hota hai.
  • Array Ka Pahla Memory Address Sabse Kam Hota hai.
array in c programming with examples
array in c Hindi

Types Of Array in c in Hindi

C Programming Language Main 2 Types ke Array Hote Hain Joki Niche Maine Example Ke Sath Bataye Hain |

Ham Is Post Main Keval 2 Dimensional Array In C Ke Baat Karne Hain |

C Two Dimensional Array In Hindi

C Arrays Jisme Sirf 2 ya 2 se Jyada Subscript Hoti Hai | Use Two Ya Multi-Dimensional Arrays Kahte Hai | Iska Pryog Matrix Ya Table Ke Rup Mai Hota Hai |

Syntax

data_type array_name[ row_size ][ column_size ];
int [3][4];

Syntax for Initialization

int arr[3][4] = {1,2,3,4,5,6,7,8,9,10,11,12}; 
                   OR 
int arr[3][4] = {{1,2,3,4},{5,6,7,8},{9,10,11,12}};

Memory Representation

array in c Hindi
2 array in c

Example: 

#include <stdio.h>
#include <conio.h>

int main() 
{

int arr[3][4] = { {1,2,3,4}, {5,6,7,8}, {9,10,11,12} };
int i, j;

    for ( i = 0; i < 3; i++ ){
        {
        for ( j = 0; j < 4; j++ ){
           {
              printf("[%d][%d]= %d\n",i,j,arr[i][j]);

           }
        }
getch();
}

Output:

[0][0]=1
[0][1]=2
[0][2]=3
[0][3]=4
[1][0]=5
[1][1]=6
[1][2]=7
[1][3]=8
[2][0]=9
[2][1]=10
[2][2]=11
[2][3]=12

Dosto Mujhe ummed hai ki aap 2D Array in C in Hindi  ko acchi tarah se samanj gye honge agar aap ko ye post acchi lage to mere is website ko jarur follow kre or ha agar aap video bhi dekhna chahte hai to aap mere channel ko bhi subscribe kar sakte hai. channel ka link aapko home page par mil jayega |

Leave a Reply

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