Array Programs with clear explanation

Поділитися
Вставка
  • Опубліковано 21 вер 2019
  • Follow my Whatsapp channel for content updates, questions, contests and many more...
    whatsapp.com/channel/0029VaEh...
    1.Ttraverse 8:00
    2.insertion 10:52
    3.deletion 17:21
    4.Rversing 21:53
    5.decimal to binary conversion 31:49
    6.printing even numbers and odd numbers seperately 40:42
    7.second largest element in array 48:00
    8.Repeated element and count 1:00:40
    9.Swap any 2 elements in an array using pointer 1:09:57
    10.Swaping every pair of adjacent elements in an array 1:16:09
    11.Rotate array elements k times 1:20:15
    12.sum of elements in an array 1:30:14
    Pointer programs with clear explanation
    • Pointers for beginners...
    Technical lectures by Shravan Kumar Manthri.
    Watch Technical C programming
    • Technical C coding : p...
    Watch Data Warehousing & Data Mining
    • 1. Multi-Dimensional ...
    Watch Design & Analysis of Algorithms
    • 1. Introduction to the...
    Watch Formal Languages & Automata theory
    • 1. Introduction to Aut...
    Contact me @ fb : shravan.kites@gmail.com
    Like us on fb: CSE GURUS
    This video explains the concept of Arrays and typical programming.
    This video explains 5 Mcq's with explanation related to Concepts in C . #ShravankumarManthri#CSEGURUS #ShravankumarManthri#CSEGURUS

КОМЕНТАРІ • 182

  • @ka_efx
    @ka_efx 11 місяців тому +125

    Any one from brocamp

  • @cochinchronicles717
    @cochinchronicles717 8 місяців тому +12

    ❤️❤️❤️❤️Brocamp legends 💕hit here

    • @CSEGURUS
      @CSEGURUS  7 місяців тому

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

  • @tuba5700
    @tuba5700 3 роки тому +44

    the most precise video on youtube for array practice , love your channel

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

      Glad to hear...You can watch this playlist for more stuff in C
      ua-cam.com/play/PLYT7YDstBQmEGhVqAoubBS0OE_5m4JDUe.html

  • @chikkamsuresh3851
    @chikkamsuresh3851 Рік тому +17

    While searching I found this gem 💎 thanks a lot man 🙏🙏

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

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

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

    thank you sir ...it really helped .

  • @zannylover2898
    @zannylover2898 4 роки тому +32

    wow amazing video sir made all videos like this means in one video plzz cover all possible concept related questions and theory part like in this video ,i highly recommend guys plzz do must watch till the end.great sir.thanks

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

      Thank you. Keep Learning.

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

      @@CSEGURUS Sir please make more videos related to data structure and algorithm.Thank you

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

      @@CSEGURUS sir, post this kind of more videos on other data structure too

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

      @@CSEGURUS look

  • @saitejaameda3389
    @saitejaameda3389 2 роки тому +9

    The greatest c tutorial ....I have never seen in the entire UA-cam history! You deserve Oscar for your channel!!!

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

      You made my day. Thank you...
      Watch “Operators in C - Tips and Tricks” in the following link
      ua-cam.com/video/tmFkBx362yw/v-deo.html
      You can watch this playlist for placement related stuff in C
      ua-cam.com/play/PLYT7YDstBQmEGhVqAoubBS0OE_5m4JDUe.html

  • @IrfaanMeera
    @IrfaanMeera 10 місяців тому +1

    Wonderful video. Worth watching two hours to understand array programs. Thank you

    • @CSEGURUS
      @CSEGURUS  8 місяців тому

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

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

    @31:21 , for reversing just the second half, 'j' too should be changed to (n-1).

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

    thank you so much sir its,help me alot ,and i have learn new things,

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

      Happy to hear from u..
      You can watch this playlist for more stuff in C
      ua-cam.com/play/PLYT7YDstBQmEGhVqAoubBS0OE_5m4JDUe.html

  • @user-cb3cz1bz3m
    @user-cb3cz1bz3m 8 місяців тому +5

    BROTOTYPE

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

    Add l2= a[i-1] in the for loop

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

    Very Helpful,, Very Good Explanation 👍

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

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

  • @RameshRathod153
    @RameshRathod153 4 роки тому +3

    sir upload on pointers also...

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

    tommorow is my interview and I'm glad that I've watched it

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

      Konsi company ka tha aur kaisa gya

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

      Great to hear...You can watch this playlist for more stuff in C
      ua-cam.com/play/PLYT7YDstBQmEGhVqAoubBS0OE_5m4JDUe.html

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

      @@crockgaming5958 RMSI

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

      Congrats bro👏👏

  • @gauravmishra8823
    @gauravmishra8823 2 роки тому +12

    Please upload for character array and string too, these videos are too helpful . Thank you so much

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

      Will upload soon...You can watch this playlist for more stuff in C
      ua-cam.com/play/PLYT7YDstBQmEGhVqAoubBS0OE_5m4JDUe.html

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

    Wow thankyou so much...!!!

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

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

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

    Srinivas sir explanation super thank you sir

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

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

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

    such a nice explanation

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

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

  • @mohammedshehinthoombil1610
    @mohammedshehinthoombil1610 11 місяців тому +1

    thank you this video
    🥰

    • @CSEGURUS
      @CSEGURUS  11 місяців тому

      You’re welcome 😊

  • @27meghana42
    @27meghana42 3 роки тому

    Sir TQ so much it is very helpful .😘😘😘

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

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

  • @rohitkumar-xn5vh
    @rohitkumar-xn5vh 3 роки тому +4

    Very Good Explanation,Sir please make this type of Video on Linked List.

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

      Sure I will....You can watch this playlist for more stuff in C
      ua-cam.com/play/PLYT7YDstBQmEGhVqAoubBS0OE_5m4JDUe.html

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

      @@CSEGURUS sir can you share the link of previous question 1to 4

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

    please sir keep posting these problem set solution.... It's hugely helpful for the beginners.

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

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

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

    Thanks bro!

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

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

  • @rashi4288
    @rashi4288 3 роки тому +3

    Very helpful.... good explanation 👍👍

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

      Glad it was helpful..You can watch this playlist for more stuff in C
      ua-cam.com/play/PLYT7YDstBQmEGhVqAoubBS0OE_5m4JDUe.html

  • @mohammedhassan8150
    @mohammedhassan8150 6 місяців тому

    Good classes
    Easy to understand
    Thanks a lot

    • @CSEGURUS
      @CSEGURUS  6 місяців тому

      You are welcome..
      Hit the below link for best techniques in patterns in C. ua-cam.com/video/hWhMAoBhi7M/v-deo.html

  • @MUNNA-tq5dg
    @MUNNA-tq5dg Рік тому +1

    thank you for the tutorial, best video ever

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

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

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

    Thank you :):)

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

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

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

    Sir tqq soo much i got this gem over thousands 🙏🙏

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

      Most welcome and Many thanks...
      Watch Top 90 Data Structures MCQs in the following link...
      ua-cam.com/video/i2LTAJhkFf8/v-deo.html

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

    Helpful 👍

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

      Glad to hear that...You can watch this playlist for more stuff in C
      ua-cam.com/play/PLYT7YDstBQmEGhVqAoubBS0OE_5m4JDUe.html

  • @saniyamansuri9607
    @saniyamansuri9607 2 роки тому +8

    This video is just awesome sir. Plz upload questions like this of other data structures sir . ☺️

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

      Glad youm liked it...Watch Top 90 Data Structures MCQs in the following link...
      ua-cam.com/video/i2LTAJhkFf8/v-deo.html

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

    thank you thank u so much

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

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

  • @joeprogrammer
    @joeprogrammer 11 місяців тому +2

    In Deletion is it necessary to write // if(position>=n+1) // Can we write // if(position>n) //

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

    You are the best 😘😘😘😘

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

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

  • @anujkumar-ug9zg
    @anujkumar-ug9zg 3 роки тому +27

    Sir , Can you please give this lecture pdf or doc .It will be very beneficial for revision.

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

    I want to do more than like share subscriber...
    Your videos are osm, This video helped me a lot ..... thankyou sir

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

      So nice of you and very happy for that..
      Watch all sortings with clear explanation in the following link..
      www.udemy.com/course/draft/3956622/?referralCode=306AAC6206D9B4584A1B

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

    thank you for informatiion

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

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

  • @nikhilwagh1728
    @nikhilwagh1728 Рік тому +1

    Great video

    • @CSEGURUS
      @CSEGURUS  11 місяців тому

      Glad you enjoyed it...
      You can watch this playlist for placement related stuff in C
      ua-cam.com/play/PLYT7YDstBQmEGhVqAoubBS0OE_5m4JDUe.html

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

    Sir please add technical c programm which are asking in automata amcat in c and java

  • @hindi-english1664
    @hindi-english1664 3 роки тому

    very helpful

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

      Glad to hear that...You can watch this playlist for more stuff in C
      ua-cam.com/play/PLYT7YDstBQmEGhVqAoubBS0OE_5m4JDUe.html

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

    In swapping adjacent elements for loop just go to limit-1

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

      Please assume n is always odd.
      Watch “Operators in C - Tips and Tricks” in the following link
      ua-cam.com/video/tmFkBx362yw/v-deo.html

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

    Make videos on complete basic c programming with concept

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

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

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

    Nice explanation

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

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

  • @komalsaxena6254
    @komalsaxena6254 3 роки тому +3

    Sir please make video on character array and string video having questions with explanation

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

      Sure.. will be uploaded in july..You can watch this playlist for more stuff in C
      ua-cam.com/play/PLYT7YDstBQmEGhVqAoubBS0OE_5m4JDUe.html

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

    thanks sr🙏🏻

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

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

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

    Sir can u explain how to return a array in a function.

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

    Respected sir please upload all programs on string..........it will be very helpful

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

      will upload soon.

    • @vishwaskulkarni2877
      @vishwaskulkarni2877 2 роки тому +2

      @@CSEGURUS Thank you sir, our placements starting in August sir so!

  • @FIGHTER_NAVEEN
    @FIGHTER_NAVEEN 2 роки тому +2

    Sir my request you too please upload DSA Problems more ,
    many guys want to place in company, please help us 🤝,many students ready to join if you start paid course on DSA

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

      Thank u for ur concern..I vl upload programs soon.. Meanwhile.Watch Top 90 Data Structures MCQs in the following link...
      ua-cam.com/video/i2LTAJhkFf8/v-deo.html

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

    At 00:40 min code for decimal to binary is true only for decimal value >=4

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

    For finding second largest element can we do in this way ?
    Int n,a[50];
    cin>>n;
    For (int i=0;i>a[i];
    }
    For (int i=0;ia[i+1])
    {
    Int temp =a[i];
    a[i] = a[i+1];
    a[i+1] = temp;
    }
    }
    cout

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

      Please test with following input. n=5 , 50 20 16 67 25.

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

      @@CSEGURUS i am getting answer as 25 which is wrong .
      Thank you sir for realising my mistake 😄👍🏻
      Sir , the problem in my program was it was just comparing the no. with the next no. right ?

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

      Yes exactly...

    • @67_parassinghparihar_it53
      @67_parassinghparihar_it53 2 роки тому

      @@saniyamansuri9607 bro the problem is that if the first number is lesser than the then the second number but greater than all the other numbers (second greatest)
      ex. 80 , 85 , 48 , 2 , 3. in this case 80 is the second highest but in your code when for loop will run for the first time no swapping will happen but in second run 85 will be swapped by 48 and now in all case swapping will occur cause all other elements are lesser than 85 so 85 will reach at last index and in second last index there will be 3 not 80(second greatest)

    • @67_parassinghparihar_it53
      @67_parassinghparihar_it53 2 роки тому

      @@saniyamansuri9607 in the code given by you its performing the task of getting only the greatest element in last index
      not arranging in ascending order so you can't say that second greatest element will come in 2nd last index or not

  • @jilanimansuri9768
    @jilanimansuri9768 2 роки тому +6

    Great explanation.
    Sir what is the time complexity of insertion program?

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

      As it may go through entire loop once so complexity is O(n).

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

    @31:21 the second half will not swap after changing i =n/2+1 as u told...

  • @NatureLover-oq6uc
    @NatureLover-oq6uc 3 роки тому +1

    Good explanation...but arrays programs are very hard....need lot of practise

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

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

  • @ARVINDKUMAR-ho8or
    @ARVINDKUMAR-ho8or 2 роки тому

    thanks

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

      Most welcome...
      Watch “Operators in C - Tips and Tricks” in the following link
      ua-cam.com/video/tmFkBx362yw/v-deo.html

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

    Very nice video

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

      Thank u very much...You can watch this playlist for placement related stuff in C
      ua-cam.com/play/PLYT7YDstBQmEGhVqAoubBS0OE_5m4JDUe.html

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

    sir plzz upload a video like this for others data structures too

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

      Sure..Watch Top 90 Data Structures MCQs in the following link...
      ua-cam.com/video/ot8QwCfOjfM/v-deo.html

  • @67_parassinghparihar_it53
    @67_parassinghparihar_it53 2 роки тому

    Sir at 54:51 in else if condition after && why you wrote a[i]l1 was wrong means a[i] must lesser than l1 thats why only it came inside else if statement then why need to check it again

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

    Hi sir in the program repeated element and count what will happen if already zero elements are there for example my array is
    int a[6]={0,4,0,5,0,6};

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

      I will upload a program for that with a different and very intersting logic.

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

      instead of taking base value as 0 use base value as say INT_MAX or INT_MIN then you can even count 0's.

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

      int a[50];
      int n,i,count,j;
      printf("Enter the number of elements in an array");
      scanf("%d",&n);
      printf("enter the values for elements");
      for(i=0; i

  • @althafav7158
    @althafav7158 2 роки тому +6

    traverse 8:00
    insertion 10:52
    deletion 17:21
    reversing 21:53
    decimal to binery conversion 31:49
    printing even numbers and odd numbers seperately 40:42
    second largest element in array 48:00
    repeated element and count 1:00:40
    swap any 2 elements in an array using pointer 1:09:57
    swaping every pair of adjacent elements in an array 1:16:09
    rotate array elements k times 1:20:15
    sum of elements in an array 1:30:14

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

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

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

    please make this video for c++

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

    Even and odd number 47:00

  • @padalavijayabhargavi2372
    @padalavijayabhargavi2372 3 роки тому +3

    Ur explanation is nice .Can u pls provide link for same type of video on topics of pointers,structures,strings ?

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

      Thank you.. You can watch pointers clearly explaned here ua-cam.com/video/yDavIqD3_9I/v-deo.html
      You can watch this playlist for more stuff in C
      ua-cam.com/play/PLYT7YDstBQmEGhVqAoubBS0OE_5m4JDUe.html

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

    @49:52

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

    🔥🔥

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

      Watch “Operators in C - Tips and Tricks” in the following link
      ua-cam.com/video/tmFkBx362yw/v-deo.html

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

    🙏

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

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

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

    Sir what if user enters zéro twice in an Array (in Example repeated élément and count ) then it will to be ignored.then how to solve that issue ? 🧐.

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

      Can we initialize that Array to. " NULL"??

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

      Use onemore array as count with max size and initialize to 0. i vl upload this method soon.

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

      OK sir 🙏😇

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

      #include
      #include
      int main()
      {
      int arr[] = {22, 11, 34, 11, 3, 4, 0, 3, 0, 34,0};
      int len = sizeof(arr) / sizeof(int), c;
      for (int i = 0; i < len; i++)
      {
      c = 1;
      for (int j = i + 1; j < len; j++)
      {
      if (arr[i] == INT_MIN)
      {
      continue;
      }
      if (arr[i] == arr[j])
      {
      c++;
      arr[j] = INT_MIN;
      }
      }
      if (c > 1)
      {
      printf("%d repeated %d times
      ", arr[i], c);
      }
      }
      return 0;
      }

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

    sir array insertion code is showing stack smashing at the output console what next and the code has been terminated without showing any result

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

    For repeated element and count
    What if the input array has repeating elements as 0 like
    {0,1,0,0,1,2}

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

    For prime numbers can we write
    If (a[i]%1==0 && a[i]%a[i]==0)

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

    I have one doubt how can u assign are[2]=-10 in simple program please telmy

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

    there are some mistakes in the codes

  • @anasmohammed5206
    @anasmohammed5206 3 місяці тому +5

    Bototype student like

  • @i_am_kanna_naveen
    @i_am_kanna_naveen 4 роки тому +5

    1st view

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

      Thank you. Keep Learning.

  • @unknown2255h
    @unknown2255h 9 місяців тому

    binery convertion this is also posible
    #include
    int main()
    {
    int i,r,a[50],n;
    printf("enter the size");
    scanf("%d",&n);
    for(i-0;n!=0;i++){
    r=n%2;
    a[i]=r;
    n=n/2;
    }
    for(i=i-1;i>=0;i--)
    printf("\t%d",a[i]);
    return 0;
    }

  • @Hellohowareyougreat
    @Hellohowareyougreat 2 роки тому +2

    This is for class 10 icse

    • @67_parassinghparihar_it53
      @67_parassinghparihar_it53 2 роки тому

      ok

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

      Watch “Operators in C - Tips and Tricks” in the following link
      ua-cam.com/video/tmFkBx362yw/v-deo.html

    • @67_parassinghparihar_it53
      @67_parassinghparihar_it53 2 роки тому

      @@CSEGURUS sir watched it your lectures are very good I have done loops also please guide me

  • @67_parassinghparihar_it53
    @67_parassinghparihar_it53 2 роки тому

    sir in last question about prime numbers
    how can we say if the number is not divisible by 2,3,5,7 then it will be prime cause
    Take the example of 143.
    143 = 11*13.
    143 is not a prime number, though it is not divisible by 2, 3, 5 and 7.
    someone please explain this

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

      Please check the constraints for n. where 2

    • @67_parassinghparihar_it53
      @67_parassinghparihar_it53 2 роки тому

      @@CSEGURUS n means elements in array ?? means this method is applicable is n(element in array ) is less than 100 and sir please answer my other questions also i posted in comment section

    • @user-eq3qn9hm3e
      @user-eq3qn9hm3e 8 місяців тому +1

      i

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

    Your brackets are simply missing after the loops .Can you explain me

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

      Can u mention the program or timeline.

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

      @@CSEGURUS insertion at position.. 2 nd for loop

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

    why you have written "for loop" for i and j both in the single for loop.. this is very confusing..

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

      Maximum program is throwing error.

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

    where is the continuation video sir

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

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

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

    Sir for me What I'm inserting is repeating twice

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

      send me ur code to csegurus@gmail.com

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

    Second largest sum is wrong while taking numbers 12345

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

    Bro. Is sub array ,large array programming questions are there in this channel if it is there please provide link

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

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

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

    @26:27

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

    I think..a number not divisible by 2,3 and 7 doesn't make sure that this is prime...for example..17*13 is a number not divisible by 2 3 and 7 ..but it is not prime...so please check it again...

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

      Please check the constraints. The input number should be in between 2 to 100. then only this logic is applicable.

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

      @@CSEGURUS oops.. sorry..i might not notice that.. really very sorry for this comment..

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

    2nd half reverse is not working by your logic

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

      Watch “Operators in C - Tips and Tricks” in the following link
      ua-cam.com/video/tmFkBx362yw/v-deo.html

  • @dozzoboy
    @dozzoboy Місяць тому

    Found many logical error in your code

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

    SECOND LARGEST NUMBER
    #include
    int main()
    {
    int i,j,a[20],temp,n;
    printf("Enter a number of element in array");
    scanf("%d",&n);
    printf("Enter %d elements
    ",n);
    for(i=0;i

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

      I think ur code is with complexity O(n^2). where as i have written with O(n) complexity.. Pls verify..

  • @yunestaku50
    @yunestaku50 7 місяців тому

    thank you so much

    • @CSEGURUS
      @CSEGURUS  7 місяців тому

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