Arrays in C Programming : very Easy

Share
Embed
  • Published on Nov 17, 2018
  • This video contains the concept of Arrays in C Programming.
    Firstly we will solve one question without Arrays then we will come to know why the concept of Array was developed.
    After realising the need of Array we will write the program using Array
    After the Program we will learn the definition of an Array
    Then one more program based on Array will be discussed .
    I am sure after watching this video the concept of Array will become easy for you .
    Defintion of Arrays
    Array is the collection of related types of data.
    In other words , Array is the collection of Data of the Same type.
    Example :
    int a [5] ;
    The above statement indicates array name is a and it has 5 elements
    All the elements type is int
    Name of First Element is : a[0]
    Name of Second Element is : a[1]
    Name of Third Element is : a[2]
    Name of Fourth Element is : a[3]
    Name of Fifth Element is : a[4]
    It means all the elements of an array has name a but has different indexes ( also called as subscript)
    Here , 0 , 1 , 2 ,3 ,4 are called as Index or Sub-Script

    Let's take one more example
    Example :
    float a [5] ;
    The above statement indicates array name is a and it has 5 elements.
    All the elements has type float .
    Name of First Element is : a[0]
    Name of Second Element is : a[1]
    Name of Third Element is : a[2]
    Name of Fourth Element is : a[3]
    Name of Fifth Element is : a[4]
    It means all the elements of an array has name a but has different indexes ( also called as subscript)
    Here , 0 , 1 , 2 ,3 ,4 are called as Index or Sub-Script
    One point to note here is that :
    Irrespective of the type of array , Indexes (OR Sub-script ) of an array has to be int .
    Please Do give your valuable feedback and Also like share and comments
    Thanks and Regards
    GABS CLASSES

Comments • 161

  • rajendra sailani
    rajendra sailani 2 days ago +1

    Sir what is your name plz

  • thadishetty saibalaji
    thadishetty saibalaji 17 days ago

    Home work same program but
    if(a[i]%2!=0)

  • Ashok Bhoyar
    Ashok Bhoyar Month ago +1

    Thank you so much because, my concept about array is cleared now.

  • Viduradh Reddy
    Viduradh Reddy Month ago +1

    How can your online classes be???

    • GABS CLASSES
      GABS CLASSES  Month ago

      u can call at 9899056388...u will get full detail

  • Viduradh Reddy
    Viduradh Reddy Month ago +1

    Thanks for your helping because tomorrow is my exam

    • GABS CLASSES
      GABS CLASSES  Month ago +1

      All the very best....Pls share video with ur friends also

  • Priyanka Goura
    Priyanka Goura Month ago +1

    Tq sir ji..

  • Jitendra Sahoo
    Jitendra Sahoo Month ago +3

    Sir why we put for loop second time?

    • GABS CLASSES
      GABS CLASSES  Month ago +1

      Bcoz we need to print all the values...it means we need to repeat it. so for repetition loop is required

  • SU JEONG PARK
    SU JEONG PARK Month ago +1

    Sorry I cant know what you say.

    • GABS CLASSES
      GABS CLASSES  Month ago

      I SPEAK IN HINDI LANGUAGE...which language u understand?

  • Amit yadav
    Amit yadav Month ago +1

    Excellent sir jii

  • Divya Shukla
    Divya Shukla 2 months ago +1

    tq so much sir...mai bahut canfued thi isme ..tq

    • GABS CLASSES
      GABS CLASSES  2 months ago

      welcome....also share my video with ur friends also

  • Parvez Ahmad khan
    Parvez Ahmad khan 2 months ago

    Thanks u sir jiii

  • MATH MAGIC Amit
    MATH MAGIC Amit 2 months ago

    Thanks sir

  • ambica Arora
    ambica Arora 2 months ago +1

    Bhot sahi padate ho sir

  • Susil Kumar Behera
    Susil Kumar Behera 2 months ago +1

    Wonderful concept sir

  • Clasholic Khan
    Clasholic Khan 2 months ago +1

    Why u haven't declared i ?

    • GABS CLASSES
      GABS CLASSES  2 months ago +1

      @Clasholic Khan ...Thanks a lot...do share with ur friends as well

    • Clasholic Khan
      Clasholic Khan 2 months ago +2

      GABS CLASSES sir your teaching is so perfect and method wise ..... Btw u got permanent subscriber😉✌️

    • GABS CLASSES
      GABS CLASSES  2 months ago +1

      By mistake i missed out..but u have to declare it..good ur studying carefully..great

  • Stavan Bhagat
    Stavan Bhagat 3 months ago +2

    Sir you are great

  • M Waqas
    M Waqas 3 months ago +1

    me tho ise bht hard smaj raha tha kuch smj he nahi aaraha hai ab sm easly smaj agaya great job sir apka whatsapp number kia hai please btayega

  • M Waqas
    M Waqas 3 months ago +1

    Excellent sir

  • Manali Ramani
    Manali Ramani 3 months ago +2

    Thank you so much sir for easy expline array

    • GABS CLASSES
      GABS CLASSES  3 months ago

      Welcome..Stay Connected fore more videos

  • Raj Sisodia
    Raj Sisodia 3 months ago +1

    सर आपका हृदय से धन्यवाद आपका समझाने का तरीका बहुत अच्छा है जिससे सभी कंप्यूटर साइंस के विद्यार्थी इसका लाभ उठा रहे हैं मैं ईश्वर से कामना करता हूं कि आपका चैनल खूब उन्नति करें और ऐसे ही आगे बढ़े जय हिंद जय भारत

  • Varshakumari Dube
    Varshakumari Dube 3 months ago

    thank u sir

  • Anamika Mishra
    Anamika Mishra 4 months ago +1

    Wow sir

  • Vassago
    Vassago 4 months ago

    interracial pass ?

  • round2hell. 2
    round2hell. 2 5 months ago +1

    Sir nice trick

  • Natasha Sahoo
    Natasha Sahoo 5 months ago +4

    Thank you sir.please upload more

  • shyamkishore prasad
    shyamkishore prasad 5 months ago

    Sir please boolean algebra bata digiye

  • ZB GRAPHICS
    ZB GRAPHICS 5 months ago +1

    Sir you are nice explainer, please define more things

    • GABS CLASSES
      GABS CLASSES  5 months ago

      Thanks a lot..Stay Connected for more videos

  • all you want
    all you want 6 months ago +1

    Thanks you so much sir

  • Shiv moorat
    Shiv moorat 6 months ago

    Sir pura video di jiye

  • LEGENDARY CHEST
    LEGENDARY CHEST 6 months ago +4

    /*Author: Md Shoaib
    Purpose: 10 numbers input from user then print only odd numbers using array
    Date: 07/07/2019 */
    #include

    int main()
    {
    //variable declaration
    int odd[10];
    //print for user
    printf("Please enter 10 numbers to get ODD numbers from your 10 numbers\n");
    //loop for input 10 numbers
    for (int i = 0; i < 10; i++)
    {
    scanf("%d", &odd[i]);
    }
    //loop for output even numbers
    for (int i = 0; i < 10; i++)
    {
    if (odd[i] % 2 != 0)
    {
    printf("Your %d number is an ODD number\n", odd[i]);
    }
    }

    return 0;
    }

  • LEGENDARY CHEST
    LEGENDARY CHEST 6 months ago +1

    thank you really sir...

  • Priya Dubey
    Priya Dubey 6 months ago

    I kyu likhte h

  • arvind Digital
    arvind Digital 7 months ago

    That's awesome

  • Shazan Hussein
    Shazan Hussein 7 months ago

    thanks sir, Love From Pakistan

  • Rida Batool
    Rida Batool 7 months ago +1

    nice work

    • GABS CLASSES
      GABS CLASSES  7 months ago

      Thanks Stay Connected for more videos

  • Hussnain Raza
    Hussnain Raza 7 months ago +2

    mAZA AGYA SIR JEE THNK U SO MUCH KEEP IT UP SOO NUICE VERY GOOD IT REALLY LIKE IT HNK U

    • GABS CLASSES
      GABS CLASSES  7 months ago

      Thanks..Stay Connected for more videos

  • comedy sence
    comedy sence 8 months ago +2

    Ek no sirrrrr

    • GABS CLASSES
      GABS CLASSES  8 months ago

      Thanks a lot...Stay connected for more videos

  • PRAVEEN KUMAR
    PRAVEEN KUMAR 8 months ago +1

    Sir nice and easy explanation .Upload more videos. Keep it up.

  • Aqib Rajput
    Aqib Rajput 8 months ago +1

    great Sir

    • GABS CLASSES
      GABS CLASSES  8 months ago

      Thanks a lot..Stay Connected for more videos

  • Saransh Kharwar
    Saransh Kharwar 8 months ago +1

    Sir mai sabako share kr diya hu apaka WhatsApp number milega

  • Shubham Bhardwaj
    Shubham Bhardwaj 8 months ago

    Sbse Osm Tarika Explain krne ka... youtube pe esa koi ni krta. big fan.Sir

  • manraj sharma
    manraj sharma 8 months ago +1

    Really great work sir, especially for international students.......

  • avinash avi
    avinash avi 8 months ago

    Super

  • Namugabo Lillian
    Namugabo Lillian 8 months ago +1

    ur the best thanks alot

  • Basharat Ahmed
    Basharat Ahmed 9 months ago +1

    Bhot nice sr....very well expalined...

  • RAJENDRA SINGH
    RAJENDRA SINGH 9 months ago

    Thanks, this video is helpful
    www.elextechnologys.blogspot.com

  • Sunit Bhagat
    Sunit Bhagat 9 months ago

    Such a nice and easily explained... Great sir... Thanks for explaining this... Please make videos on structure and functions programs

    • GABS CLASSES
      GABS CLASSES  9 months ago

      thanks sumit...videos on structures and functions is available on Gabs classes channel..please check

  • Nawazish Mallik
    Nawazish Mallik 9 months ago

    Great teacher

  • Jilani khan
    Jilani khan 9 months ago

    Good job

  • Nature beauty
    Nature beauty 9 months ago

    Thanks sir

  • ALLEN CORDEIRO
    ALLEN CORDEIRO 10 months ago

    #include
    void main()
    {
    int a[5],i;
    printf("enter 5 numbers");
    for(i=0;i

  • Navjot Randhawa
    Navjot Randhawa 10 months ago +1

    👌👌👌👌 verrry nice explaining

    • GABS CLASSES
      GABS CLASSES  10 months ago

      Thanks...also check videos on 2-d arrays and functions also..u will surely like them

  • Azmat Usmani
    Azmat Usmani 10 months ago +4

    Thnku so mch sir..
    Explained so nicely..

  • Kapil Chouhan
    Kapil Chouhan 10 months ago

    5 number ki jagah n number enter karvana ho to Kese karte he

  • Ashish verma
    Ashish verma 10 months ago

    Very nice

  • Suneel Prem Gaba
    Suneel Prem Gaba 10 months ago +1

    Very informative lecture Good Sirji Thank’s

  • Zayn Shahi
    Zayn Shahi 10 months ago +1

    easy way. thanks

    • GABS CLASSES
      GABS CLASSES  10 months ago

      Welcome..Stay Connected for more videos..Thanks a lot

  • Gautam Kumarnwdbihar
    Gautam Kumarnwdbihar 10 months ago +2

    Thank you my dear sir abi tak youtube me aapse aacha explain koi nahi kiya aap aacha explain kiye hai mai aapka dil se thanku bol raha hu sir aayese hi har video me explain kigiye sir aap c programing ka sara video daliye mera sara classmate aapka video dekhta hai mera aara classmate aapka video pasand karta hai mai bsc(it) ka student hu aur ye video bca wala bi dekhta hai so sir plz programing ka sara video uplod kare we like your channel

    • GABS CLASSES
      GABS CLASSES  10 months ago

      Welcome Gautam....We are making more videos on all the subjects Like C , C++ , Java , Data Structures etc.....Stay Connected for more videos...Also share the link with your class mates...Help us to reach more and more students..Thanks will also motivate us to make more and more helpful videos

  • Raju Kumar Online
    Raju Kumar Online 11 months ago +1

    Best wishes

    • GABS CLASSES
      GABS CLASSES  10 months ago

      Thanks a lot..Stay connected more videos will come soon...

  • Tausif Ansari
    Tausif Ansari 11 months ago +1

    Awesome

    • Tausif Ansari
      Tausif Ansari 10 months ago

      Sir, function and pointer pe video banaiye na please

    • GABS CLASSES
      GABS CLASSES  10 months ago

      Thanks a lot ...Stay connected for more videos..New videos will be uploaded soon