Deleting an element in an array (C program)

Поділитися
Вставка
  • Опубліковано 15 жов 2024

КОМЕНТАРІ • 51

  • @Sushma_devi_s
    @Sushma_devi_s 2 роки тому +1

    It's wrong code..
    It must be
    For(i=position;i

  • @aariffmohd4980
    @aariffmohd4980 2 роки тому +4

    I asked value as an input from the user and wasn't able to code well,but taking position seems much easier

  • @poochaser6618
    @poochaser6618 2 роки тому

    How to delete multiple elements like taking the limit frm user and how to delete elements lzz tell me

  • @akhilmishra3258
    @akhilmishra3258 Рік тому

    In the second last loop
    for(i=pos-1;i>=n-1;i++)
    a[i]=a[i+1];
    a[pos-1]=value;
    we need to store it lastly in the value variable .

  • @darshansdsd8560
    @darshansdsd8560 3 роки тому

    Ossm teaching after so many lectures this is best

    • @CSEGURUS
      @CSEGURUS  3 роки тому

      Thanks a ton...You can watch this playlist for more stuff in C
      ua-cam.com/play/PLYT7YDstBQmEGhVqAoubBS0OE_5m4JDUe.html

  • @bhavyasachula7006
    @bhavyasachula7006 3 роки тому +2

    awesome explanation sir.thank you sir.

    • @CSEGURUS
      @CSEGURUS  3 роки тому

      You're most welcome...You can watch this playlist for more stuff in C
      ua-cam.com/play/PLYT7YDstBQmEGhVqAoubBS0OE_5m4JDUe.html

  • @SangArt
    @SangArt 2 роки тому

    How to free up the unnecessary space at the end of array after deleting

    • @themeshproduction
      @themeshproduction 4 місяці тому

      these are arrays it can't be changed... also array is made of size 100 it will be still there...To deal with this problem we use Linked Lists

  • @VamsiGeetham_2024
    @VamsiGeetham_2024 Рік тому

    Thank you so much sir.

    • @CSEGURUS
      @CSEGURUS  Рік тому

      Most welcome…You can watch this playlist for placement related stuff in C
      ua-cam.com/play/PLYT7YDstBQmEGhVqAoubBS0OE_5m4JDUe.html

  • @daneshwarin9853
    @daneshwarin9853 3 роки тому +2

    Great explanation sir ty❤

    • @CSEGURUS
      @CSEGURUS  3 роки тому

      Most welcome..You can watch this playlist for more stuff in C
      ua-cam.com/play/PLYT7YDstBQmEGhVqAoubBS0OE_5m4JDUe.html

    • @sanchitmehta7181
      @sanchitmehta7181 3 місяці тому

      Are you doing job rn?

  • @billmallxii1219
    @billmallxii1219 3 роки тому +1

    Thank You So Much Sir!

    • @CSEGURUS
      @CSEGURUS  3 роки тому

      Most welcome..You can watch this playlist for more stuff in C
      ua-cam.com/play/PLYT7YDstBQmEGhVqAoubBS0OE_5m4JDUe.html

  • @kousalyad9697
    @kousalyad9697 2 роки тому

    Good explanation sir easy to understand for me thank u sir

    • @CSEGURUS
      @CSEGURUS  2 роки тому

      Thanks and welcome...
      You can watch this playlist for more stuff in C
      ua-cam.com/play/PLYT7YDstBQmEGhVqAoubBS0OE_5m4JDUe.html

  • @binitgudhka3292
    @binitgudhka3292 3 роки тому

    Very very very good explanation

    • @CSEGURUS
      @CSEGURUS  3 роки тому

      Thanks and welcome....Watch all sortings with clear explanation in the following link..
      www.udemy.com/course/draft/3956622/?referralCode=306AAC6206D9B4584A1B

  • @vikasvobbilisetti7107
    @vikasvobbilisetti7107 3 роки тому +1

    excellent logic,thank you

    • @CSEGURUS
      @CSEGURUS  3 роки тому

      You are welcome..You can watch this playlist for more stuff in C
      ua-cam.com/play/PLYT7YDstBQmEGhVqAoubBS0OE_5m4JDUe.html

  • @bindukm4750
    @bindukm4750 2 роки тому

    Thank you so much 🥰🥰🥰🥰🥰

    • @CSEGURUS
      @CSEGURUS  2 роки тому

      You’re most welcome ..You can watch this playlist for placement related stuff in C
      ua-cam.com/play/PLYT7YDstBQmEGhVqAoubBS0OE_5m4JDUe.html

  • @rashaaman3062
    @rashaaman3062 Рік тому

    Thank you

    • @CSEGURUS
      @CSEGURUS  Рік тому

      You're most welcome...
      You can watch this playlist for placement related stuff in C
      ua-cam.com/play/PLYT7YDstBQmEGhVqAoubBS0OE_5m4JDUe.html

  • @claudiosilvestri8485
    @claudiosilvestri8485 2 роки тому

    Ti faccio notare però che una volta rimosso il numero dal vettore, la memoria che il vettore occupa sulla scheda RAM è sempre la stessa poiché non è stata rimossa fisicamente la locazione di memoria del vettore nel momento della rimozione del numero.

    • @CSEGURUS
      @CSEGURUS  2 роки тому

      Thank u...Watch all sortings with clear explanation in the following link..
      www.udemy.com/course/draft/3956622/?referralCode=306AAC6206D9B4584A1B

  • @blessonbinujoseph3976
    @blessonbinujoseph3976 3 роки тому

    Awesome 👌

    • @CSEGURUS
      @CSEGURUS  3 роки тому

      Thank you!... Keep Learning..
      You can watch this playlist for more stuff in C
      ua-cam.com/play/PLYT7YDstBQmEGhVqAoubBS0OE_5m4JDUe.html

  • @ayushchaturvedi5597
    @ayushchaturvedi5597 2 роки тому +1

    Galat aa rha hai is code se

  • @pradipmalik6068
    @pradipmalik6068 2 роки тому

    Video not show clearly

  • @rkroshanprince
    @rkroshanprince 2 роки тому

    thanks sir

    • @CSEGURUS
      @CSEGURUS  2 роки тому +1

      Most welcome..You can watch this playlist for placement related stuff in C
      ua-cam.com/play/PLYT7YDstBQmEGhVqAoubBS0OE_5m4JDUe.html

  • @bijoykumarray3756
    @bijoykumarray3756 Рік тому

    Thnks vaiya❤

    • @CSEGURUS
      @CSEGURUS  Рік тому

      Most welcome…You can watch this playlist for placement related stuff in C
      ua-cam.com/play/PLYT7YDstBQmEGhVqAoubBS0OE_5m4JDUe.html

  • @priyeshpandey7128
    @priyeshpandey7128 2 роки тому

    No need to ask user for length of array
    Simply
    int Length = sizeof(arr) / sizeof(are[0])
    It will calculate like
    Length as int byte size of a = 5*4 , byte size of a[0] = 4
    Length = 20/4 = 5

  • @bindukm4750
    @bindukm4750 Рік тому

    thank you so much sir

    • @CSEGURUS
      @CSEGURUS  Рік тому

      Most welcome...
      You can watch this playlist for placement related stuff in C
      ua-cam.com/play/PLYT7YDstBQmEGhVqAoubBS0OE_5m4JDUe.html

  • @ECRBkavipriya
    @ECRBkavipriya 3 місяці тому +1

    Wrong program output wrong

  • @chirag8503
    @chirag8503 3 роки тому

    one mistake in second for loop i

  • @pmkvines5952
    @pmkvines5952 3 роки тому

    🙏

    • @CSEGURUS
      @CSEGURUS  3 роки тому

      Thank you..You can watch this playlist for more stuff in C
      ua-cam.com/play/PLYT7YDstBQmEGhVqAoubBS0OE_5m4JDUe.html

  • @gamerasad2736
    @gamerasad2736 22 дні тому

    Waste of memory ,the code can be more efficient

  • @wizrom3046
    @wizrom3046 Рік тому

    (Edited) nothing

  • @Sushma_devi_s
    @Sushma_devi_s 2 роки тому

    No that's wrong

  • @shrutikalwar4422
    @shrutikalwar4422 3 роки тому

    Thank you

    • @CSEGURUS
      @CSEGURUS  3 роки тому

      You are welcome..Watch Top 90 Data Structures MCQs in the following link...
      ua-cam.com/video/i2LTAJhkFf8/v-deo.html