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

Поділитися
Вставка
  • Опубліковано 15 бер 2019
  • Insert Element into Array | Logical Programming in C | Naresh IT
    ** For Online Training Registration: goo.gl/r6kJbB ► Call: +91-8179191999
    Subscribe to our channel and hit the bell 🔔🔔🔔 icon to get video updates.
    💡 Visit Our Websites
    For Classroom Training : nareshit.in/c-language-training/
    For Online Training : nareshit.com/c-language-onlin...
    --------------------------
    💡 About NareshIT:
    "Naresh IT is having 14+ years of experience in software training industry and the best Software Training Institute for online training, classroom training, weekend training, corporate training of Hadoop, Salesforce, AWS, DevOps, Spark, Data Science, Python, Tableau, RPA , Java, C#.NET, ASP.NET, Oracle, Testing Tools, Silver light, Linq, SQL Server, Selenium, Android, iPhone, C Language, C++, PHP and Digital Marketing in USA, Hyderabad, Chennai and Vijayawada, Bangalore India which provides online training across all the locations
    --------------------------
    💡 Our Online Training Features:
    🎈 Training with Real-Time Experts
    🎈 Industry Specific Scenario’s
    🎈 Flexible Timings
    🎈 Soft Copy of Material
    🎈 Share Videos of each and every session.
    --------------------------
    💡 Please write back to us at
    📧 us.training@nareshit.com/ 📧 online@nareshit.com or Call us at the USA: ☎+1404-232-9879 or India: ☎ +918179191999
    --------------------------
    💡 Check The Below Links
    ► For Course Reg: goo.gl/r6kJbB
    ► Subscribe to Our Channel: goo.gl/q9ozyG
    ► Circle us on G+: plus.google.com/+NareshIT
    ► Like us on Facebook: / nareshit
    ► Follow us on Twitter: / nareshitek
    ► Follow us on Linkedin: goo.gl/CRBZ5F
    ► Follow us on Instagram: goo.gl/3UXYK3

КОМЕНТАРІ • 73

  • @karthikeyan-lv6wu
    @karthikeyan-lv6wu 4 роки тому +36

    No one can replace your teaching method.Teach me master

  • @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

  • @jatishrajwani2588
    @jatishrajwani2588 3 роки тому +9

    What a calm and straight forward way to explain, really liked it 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

  • @mdyusufkhan4083
    @mdyusufkhan4083 4 роки тому +4

    Thank You Sir!
    Really Excellent Explanation

  • @codex0717
    @codex0717 2 роки тому +5

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

  • @pinkcodermedia8374
    @pinkcodermedia8374 4 роки тому

    Thanks sir u hav cleared my concept

  • @nikhildakwale412
    @nikhildakwale412 3 роки тому +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

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

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

  • @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

  • @then__i__m__rabi4939
    @then__i__m__rabi4939 5 місяців тому

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

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

    Thanks for making me understand the process.

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

    You explain with patience.

  • @justrp3826
    @justrp3826 4 роки тому +1

    thank you so much Sir :)))

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

    Very Helpful. Thank you

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

    Mind blowing sir🙏

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

    Sir you really are a savior

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

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

  • @praveenraj4112
    @praveenraj4112 4 роки тому

    Nice explanation!!!

  • @mdriyazansari9464
    @mdriyazansari9464 5 років тому +2

    Very good explanation

  • @salmamuhammed5077
    @salmamuhammed5077 4 роки тому

    thank u so much ..

  • @Omkar-ku9to
    @Omkar-ku9to Рік тому +1

    thank you very much😊 , it helps a lot 💯

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

    Thank you sir🙏🙏❤❤

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

    Thank you sir.

  • @lellajagadeeswar596
    @lellajagadeeswar596 4 роки тому +1

    super explanation sir

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

    Thanks u sir ❤️

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

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

  • @fasal7607
    @fasal7607 4 роки тому

    i love your classes

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

    good explained ,thanks

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

    thankyou sooo much sir

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

    Thank you so much

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

    Clear explanation

  • @saranrajm3261
    @saranrajm3261 5 років тому

    super

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

    I am a big fan of #NareshIT

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

    Understood ❤️👍

  • @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 2 роки тому

      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

  • @cyberhifi2629
    @cyberhifi2629 3 роки тому +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.

  • @arkobhattacharya2903
    @arkobhattacharya2903 4 роки тому

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

  • @annahari610
    @annahari610 4 роки тому

    Sir how to insert more number of elements in array

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

    👌👌

  • @rakeshreddy2349
    @rakeshreddy2349 4 роки тому +1

    Where is the program

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

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

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

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

  • @rahulpradhan5585
    @rahulpradhan5585 4 роки тому

    How to solve using another temp array plz upload

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

    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

  • @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--)

  • @satyajitrout162
    @satyajitrout162 4 роки тому

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

  • @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]

  • @mahalakshmi2998
    @mahalakshmi2998 4 роки тому

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

    • @shariksaifi7572
      @shariksaifi7572 4 роки тому +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.

  • @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
      .

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

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

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

    at the position we have to decrease n-1

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

    I think these guys do not reply to comments

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

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

  • @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 3 роки тому

      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 2 роки тому

      He said watch from 6:20

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

    using array

  • @suryapadala54
    @suryapadala54 4 роки тому

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

  • @munish549
    @munish549 4 роки тому

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

    • @annahari610
      @annahari610 4 роки тому

      That location is index bro

  • @palvipwar101
    @palvipwar101 4 роки тому +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 4 роки тому +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

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

    0p

  • @diproy9363
    @diproy9363 4 роки тому +1

    too much light on the white board.