Insert Element into Array | Logical Programming in C | Naresh IT

Поделиться
HTML-код
  • Опубликовано: 14 янв 2025

Комментарии • 73

  • @karthikeyan-lv6wu
    @karthikeyan-lv6wu 5 лет назад +39

    No one can replace your teaching method.Teach me master

  • @jatishrajwani2588
    @jatishrajwani2588 3 года назад +10

    What a calm and straight forward way to explain, really liked it sir😊

  • @codex0717
    @codex0717 3 года назад +6

    a great teacher.....always remember you sir :)

  • @Ravi-se3jm
    @Ravi-se3jm 5 лет назад +3

    Anna mee valla naa coding skills chala improve ayyai elaane anni topics meeda and some tough array problem meeda videos cheyyandi

  • @shashwatkumarsoni54cse39
    @shashwatkumarsoni54cse39 2 года назад +2

    Wherever I feel I would not able to understand the given problem then I quickly watch your vedio on that topic
    And seriously, I am telling you after watched everytime I can understand so precisely within few mins .
    Thanku sir

  • @mdyusufkhan4083
    @mdyusufkhan4083 4 года назад +4

    Thank You Sir!
    Really Excellent Explanation

  • @Omkar-ku9to
    @Omkar-ku9to 2 года назад +1

    thank you very much😊 , it helps a lot 💯

  • @nikhildakwale412
    @nikhildakwale412 4 года назад +4

    I am not kidding sir, *YOU ARE INCREDIBLE* , I get chills when I get what you are saying and my program works, THANK YOU SOO MUCH SIR!!!!! You are doing incredible work, and you're an AMAZING teacher!!!

  • @surekhag316
    @surekhag316 5 лет назад +3

    Crystal clear explanation

  • @unknown___person
    @unknown___person 3 года назад

    I am a big fan of #NareshIT

  • @ritiksharma4698
    @ritiksharma4698 4 года назад

    You explain with patience.

  • @mdriyazansari9464
    @mdriyazansari9464 5 лет назад +2

    Very good explanation

  • @then__i__m__rabi4939
    @then__i__m__rabi4939 11 месяцев назад

    Thank you sir finally i understand the concept that I'm looking for.
    There are so many videos on RUclips but everyone's explanation is out of my mind.
    Thank you so much❤❤.

  • @entertainmentzone8797
    @entertainmentzone8797 3 года назад +1

    good explained ,thanks

  • @minhajerfan4948
    @minhajerfan4948 2 года назад

    Thanks for making me understand the process.

  • @shinebaka5696
    @shinebaka5696 4 года назад

    Sir you really are a savior

  • @lellajagadeeswar596
    @lellajagadeeswar596 5 лет назад +1

    super explanation sir

  • @bardanshiwakoti4191
    @bardanshiwakoti4191 2 года назад

    Literally when my mind dont get anything ,then it remembers you sir🙂thank you sir

  • @syedfarman3227
    @syedfarman3227 3 года назад

    Mind blowing sir🙏

  • @minercreepmc
    @minercreepmc 4 года назад

    Very Helpful. Thank you

  • @pinkcodermedia8374
    @pinkcodermedia8374 5 лет назад

    Thanks sir u hav cleared my concept

  • @yokeshsharan8456
    @yokeshsharan8456 3 года назад

    Clear explanation

  • @justrp3826
    @justrp3826 5 лет назад +1

    thank you so much Sir :)))

  • @fasal7607
    @fasal7607 4 года назад

    i love your classes

  • @nandhinit2933
    @nandhinit2933 4 года назад

    Thank you so much...very clear explaination :)

  • @sathiruidas6271
    @sathiruidas6271 3 года назад

    Thanks u sir ❤️

  • @mohammedkashif2893
    @mohammedkashif2893 2 года назад

    Understood ❤️👍

  • @shhhahil
    @shhhahil 3 года назад

    Thank you sir.

  • @shraddhapawar5674
    @shraddhapawar5674 3 года назад +2

    Sir here in for loop it must be loc -1 , bcoz array index start with zero.
    For( I= n-1; I>=loc-1; i--)

  • @ayishafrz6260
    @ayishafrz6260 3 года назад

    Thank you so much

  • @praveenraj4112
    @praveenraj4112 5 лет назад

    Nice explanation!!!

  • @shaikrahhil7234
    @shaikrahhil7234 3 года назад +1

    👌👌

  • @salmamuhammed5077
    @salmamuhammed5077 5 лет назад

    thank u so much ..

  • @g15ankit83
    @g15ankit83 3 года назад +2

    sir as we have already declare the size of array =6 and then in the loop we are expanding it to 7 i.e i+1.
    how sir?

    • @harshitranjanrai7837
      @harshitranjanrai7837 3 года назад

      why decalare static array with size 6?? take buffer size and then increment the size of array by 1 or, you can simply use ++ operator for incremanting the value

  • @vasudevarao9877
    @vasudevarao9877 4 года назад +5

    Good explanation. I have one query which is you are mentioning that array length is 6 but you are adding one more location then n value becomes 7 Right?

    • @scorpus_gaming
      @scorpus_gaming 4 года назад

      S but he writes (n-1) 7-1=5

    • @imzerofnontwitter7760
      @imzerofnontwitter7760 3 года назад

      I think he forgot to mention it but n is equal to the number of elements we are giving input of, the size of array can be anything, even a[100] but in that we are only putting in 6 elements so n=6

    • @sahilsinnarkar9650
      @sahilsinnarkar9650 3 года назад

      He said watch from 6:20

  • @sanket2896
    @sanket2896 5 лет назад +1

    How do I write C program for below problem statement??
    Input: Array - a[11 ,32 ,12 ,18 ,-4]
    Input: Required Sum- 14
    Output - [18 , -4]
    Input: Required Sum- 55
    Output - [11,32,12]

  • @rakeshreddy2349
    @rakeshreddy2349 5 лет назад +1

    Where is the program

  • @ramatalwadker
    @ramatalwadker 3 года назад

    When we insert value at loc 2, we take the index as loc-1? Or direct location??

  • @dmleela3997
    @dmleela3997 9 месяцев назад

    Sir the program you have explained is correct but when iam executing the logic you have told ,the elements are replacing but it is not shifting can you please explain this again

  • @ankishdas5179
    @ankishdas5179 3 года назад

    sir it should be loc -1 in for loop and also arr[loc-1]=ele

  • @cyberhifi2629
    @cyberhifi2629 4 года назад +1

    sir one request please please please tell me the solution of this
    In a list of n goods, on the most expensive thing among them is sold at a loss of x% and on the cheapest thing there is a gain of y% and rest of things there is a gain of p%. Find loss or gain on whole transaction in rupees.

  • @hafizsakib2734
    @hafizsakib2734 2 года назад

    SIr you are asking user about the position not the index!!
    Position 2 means insert the element in index 1,isn't it?

  • @arkobhattacharya2903
    @arkobhattacharya2903 4 года назад

    Sir in the for loop it should be...i=loc-1

  • @saranrajm3261
    @saranrajm3261 5 лет назад

    super

  • @Mahesh18225
    @Mahesh18225 3 года назад

    Sir manam 2 place lo value insert chesthe akkade store avutundhi index follow avvatledhu

  • @annahari610
    @annahari610 4 года назад

    Sir how to insert more number of elements in array

  • @sug_madic7683
    @sug_madic7683 4 года назад

    at the position we have to decrease n-1

  • @cyberhifi2629
    @cyberhifi2629 4 года назад +1

    I think these guys do not reply to comments

  • @satyajitrout162
    @satyajitrout162 5 лет назад

    How the 5th location will be shifted in6th location given n=6

  • @khushwantkumar800
    @khushwantkumar800 4 года назад

    Sir, since array size is 6 only then how could we insert one more element into array? Wont it cause any error or program hanging??
    Plss reply sir

    • @FayascB
      @FayascB 4 года назад +4

      in the declaration part we are not giving the capacity of the array as the size of array.for example,array containts 10,20,30,40,50,60.but in the declaration part we have to give Arr[10].so they array can carry more 4 elemnts out of 6 elements
      .

  • @mahalakshmi2998
    @mahalakshmi2998 5 лет назад

    Sir , i have a doubt ,array size is fixed know then hw we can insert another element .plse clarify this doubt sir

    • @shariksaifi7572
      @shariksaifi7572 5 лет назад +2

      you cant insert an element in completly fill array , if you want to insert an element then you have to create another long array and copy previous array inside the newly created array.that is time comsuming methods to overcome this problem they introduced linkedlist .
      he created another copy of array then insert arr[100] at some location. that is bad programming.

  • @rahulpradhan5585
    @rahulpradhan5585 5 лет назад

    How to solve using another temp array plz upload

  • @palvipwar101
    @palvipwar101 5 лет назад +3

    #include
    int main()
    {
    int i,arr[10],size,value,location;
    printf("Enter the size
    ");
    scanf("%d",&size);
    printf("Enter the elements
    ");
    for(i=0;i=location;i++)
    {
    arr[i+1]=arr[i];
    }
    arr[location]=value;
    printf("Resultant array
    ");
    for(i=0;i

    • @varsinibalu2817
      @varsinibalu2817 5 лет назад +2

      because in for loop u incremented the condition use for(i=size-1;i>=location;i--)..this for loop is working....

    • @annahari610
      @annahari610 4 года назад

      @@varsinibalu2817 right sister

  • @creatorpoint6935
    @creatorpoint6935 4 года назад

    Sir pls do uploaded deletion in array pls sir😭😭😭🙏

  • @munish549
    @munish549 5 лет назад

    One confusion you take 2nd location but insert element in third position

    • @annahari610
      @annahari610 4 года назад

      That location is index bro

  • @suryapadala54
    @suryapadala54 4 года назад

    Sir akkada size of the array 5 vundi 6 place ala vastundi malli akkada asla

  • @cyberhifi2629
    @cyberhifi2629 4 года назад

    using array

  • @diproy9363
    @diproy9363 5 лет назад +1

    too much light on the white board.

  • @NareshIT
    @NareshIT  5 лет назад +1

    Please Comment, Subscribe and Click Bell🔔🔔🔔 Icon for More Updates. To learn software course from our experts please register here for online training: goo.gl/HIB0wL

  • @mrrahul5910
    @mrrahul5910 3 года назад

    0p

  • @soumyamunsi8449
    @soumyamunsi8449 2 года назад

    Thank you sir🙏🙏❤❤

  • @najrullahkhan1953
    @najrullahkhan1953 3 года назад

    thankyou sooo much sir