array in c programming with examples

One Dimensional Array In Hindi – Array In C Hindi

C

One Dimensional Array In Hindi1D Array In C In Hindi:- In This Post, I Will Show You 1 Dimensional Array In C With Example In Hindi |

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

One 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 One Dimensional Array In C Ke Baat Karne Hain |

One Dimensional Array In Hindi

C Array Jisme Sirf 1 Subscript Hoti Hai | Use One Dimensional Arrays Kahte Hai |Iska Pryog Linear Rup Mai Data Ko Store Karne Ke Liye Kiya Jata Hai |

Syntax :

data_type array_name[size_of_array];
int num[5];

Syntax for Initialization

data_type array_name[size_of_array] = {value1, value2,...,value n}
int num[5] = {1,2,3,4,5};

Example Program

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

  int main()
   {
      int i, num[5]={1,2,3,4,5};
      for(i=0;i<num;i++);
       {
          printf("%d\n",num);
       }
      getch();
  }

Output

1
2
3
4
5

Memory Representation

Dosto Mujhe ummed hai ki aap 1D 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 *