C++ & DSA course | Pointers - 2 | Call by reference, Arithmetic and Array as a pointer | Lecture 25

Did you watch the last lecture ? If not, please watch it to have a firm foundation of pointers concept.
In this class, Sanket Sir will teach some important applications of pointers such as calling by reference. He will help you to unlock some more powers of pointers. C++ & DSA course. Curious ? Come, join the class !
If you are facing any trouble accessing the assignment or lesson plan, please re-login to your account on PW Skills website and try.
Are you finding the classes helpful?
Stay tuned for more!
Access the notes and assignments for this class for free at :
If you are joining us late, to know more about PWSkills & plans :
Watch the Orientation Video: • C++ DSA and Java DSA -...
Watch the Launch Video: • @CollegeWallahbyPW THI...
00:00 - Introduction
01:38 - Recap
03:35 - Today's Checklist
04:36 - Call-by-reference using pointers
14:41 - Example code
16:53 - For a given string 'aaacad', output the first and last occurence of 'a'
26:07 - Pointer arithmetic
31:48 - Example codes and operations on pointers
01:02:14 - Arrays as pointers
01:27:17 - Summary
▶️ PW Skills Website - pwskills.com
▶️ PW Skills Instagram - / pwcollegewallah
▶️ PW Skills LinkedIn Channel -
▶️ PW Skills Telegram Channel- t.me/SkillsPW
#C++ #DSAFoundation #CollegeWallah #PhysicsWallah #Pointers #PointersArithmetic #Array #Null #Invalid

Пікірлер: 112

  • @creativerahulp2111
    @creativerahulp2111 Жыл бұрын

    Sanket Sir Your teaching style is amazing You teach in a very simple way So, Thank You! I am dependent only on this course so continue this course.

  • @NirajKumarPandey1234
    @NirajKumarPandey12343 ай бұрын

    [25].I have seen this lecture today. And you explain any concept in easy language, sir. 15TH April 2024... ❤❤❤❤❤

  • @-InnOCenT-44
    @-InnOCenT-445 ай бұрын

    After witching this lecture i'm playing with arrays and pointer 😂it's too much fun .. 😂 Thanks a lot... Graet work keep it up ... Good wishes fo u and your team.

  • @shivamchakrawarti8262
    @shivamchakrawarti8262 Жыл бұрын

    Excellence Explanation sir No one explained like you even in paid course

  • @Hellobox1
    @Hellobox1 Жыл бұрын

    Sanket Sir Your teaching style is amazing You teach in a very simple way So, Thank You! I am dependent only on this course so continue this course, Sir I want to daily one lecture

  • @sanketsingh1094

    @sanketsingh1094

    Жыл бұрын

    ❤🎉

  • @naziyakhan4096
    @naziyakhan409611 ай бұрын

    Mai har lecture ko like karke hi aage barhti hoon, you deserve it sir ❤ itna accha aap parhate hain

  • @CHAI-LOVEER
    @CHAI-LOVEER Жыл бұрын

    Aaj ka session me bahut maza aaya..

  • @soumyadeeppradhan
    @soumyadeeppradhan Жыл бұрын

    Very much helpful lecture❤

  • @zovio9218
    @zovio9218 Жыл бұрын

    a complex topic like this made so simple, thank you so much!!

  • @neerajvijay5064
    @neerajvijay5064 Жыл бұрын

    Aap logo ko certification courses launch karne chaiye jisse hum seekh kar hum apne resume mei show kar paaye 😊😊😊

  • @cse_454

    @cse_454

    Жыл бұрын

    Jake courses kharid lo pw skill k website mai

  • @neerajvijay5064

    @neerajvijay5064

    Жыл бұрын

    @@cse_454 🙄🙄🙄 aare ye one month pahle kaa message hai and abh inhone certification course laa dia hai maine le lia hai 😊😊😊

  • @i_want_to_eat_chicken_

    @i_want_to_eat_chicken_

    2 ай бұрын

    Bro... u know where can I get lecture notes??​@@neerajvijay5064

  • @Saira124

    @Saira124

    29 күн бұрын

    ​@@neerajvijay5064 apni konsa course liya hai? Kindly tell

  • @Saira124

    @Saira124

    29 күн бұрын

    ​@@neerajvijay5064 apni konsa course liya hai? Kindly tell

  • @gauravkoliiitb8925
    @gauravkoliiitb8925 Жыл бұрын

    maja aa gya sir amazing style of treaching

  • @ytuser12178

    @ytuser12178

    Жыл бұрын

    Bro which year and branch. Btw from iit kgp😅

  • @devendrarajput2279
    @devendrarajput22796 ай бұрын

    raghav sir an sanket sir are best teachers

  • @user-dz1xn1qd9m
    @user-dz1xn1qd9m7 ай бұрын

    thank you sir this DSA content is every helpfull

  • @DeepakSharma-de6uk
    @DeepakSharma-de6uk Жыл бұрын

    Mja aa gya sir ji....What a marvelous teaching style🤩😎❤

  • @anshulvishwakarma3238
    @anshulvishwakarma3238 Жыл бұрын

    and sir please update your playlist

  • @devendrarajput2279
    @devendrarajput22796 ай бұрын

    first time i understand pointer properly because of u sir

  • @RISHAVKUMAR-dp7ip
    @RISHAVKUMAR-dp7ip9 ай бұрын

    awesome video lecture sir 🥰🥰🥰🥰🥰🥰🥰😇

  • @gauravkoliiitb8925
    @gauravkoliiitb8925 Жыл бұрын

    hamare collage pointers pr quize tha yar phle pd liya hota tho sare pointers concept vhi he or sir ne bhuth achha smjaya he

  • @tayyabamalik3293
    @tayyabamalik32936 ай бұрын

    Thank you 😊

  • @janmejaysahu9011
    @janmejaysahu9011 Жыл бұрын

    Thank you❤ finished - 29mar.2023

  • @rahulgoswami521
    @rahulgoswami521 Жыл бұрын

    Given an integer array containing n elements. Find the element in the array for which all the elements to its left are smaller than it and all the elements to the right of it are larger than it. don't understand the solution

  • @AMITKUMAR-ug9lz
    @AMITKUMAR-ug9lz Жыл бұрын

    sir i want to know about function ptr

  • @mirzaahteshambaig9197
    @mirzaahteshambaig9197 Жыл бұрын

    @sanketsingh1094 hats off to you 👏...

  • @ShivamPandey-eq3tu
    @ShivamPandey-eq3tu Жыл бұрын

    Nice sir 👍👍 I had clear all my pointer concepts through this lecture sir 🙏🏻

  • @Manoj_2426
    @Manoj_2426 Жыл бұрын

    Sir you are best teacher

  • @rex_incognito1
    @rex_incognito19 ай бұрын

    how are the values of a,p and *p all same? did not understand that

  • @grow1st
    @grow1st Жыл бұрын

    sir if array is pointer then we know that for storing address of a pointer in another pointer we use double pointer so why we are not using double pointer in case of storing address stored in name of array

  • @manvendrabahadursingh7943
    @manvendrabahadursingh7943 Жыл бұрын

    Sir web development ka course le kr aaye sir 🙏🙏

  • @niketansinha8684
    @niketansinha8684 Жыл бұрын

    thank you bahiya wonderful session.

  • @udit238
    @udit2385 ай бұрын

    sanlet sir ke shri charno main mera sat sat naman

  • @unaisshaikh3004
    @unaisshaikh30046 ай бұрын

    fabulous explanation:)

  • @ecoboy7829
    @ecoboy7829 Жыл бұрын

    @Sanket Singh Sir apne last me jo code samjhaya wo samajh nhi aaya usme *p bhi kaise ek address return kiya wo samajh me nhi aaya.

  • @Aambo04
    @Aambo04 Жыл бұрын

    At 01:25:00, can anyone tell me why program gave adress for '*p' ? Should not it give value 11? Anyone please help me?

  • @crazyduniya128

    @crazyduniya128

    Жыл бұрын

    *p bucket me arr hai not *arr

  • @shubhamdhiman3365

    @shubhamdhiman3365

    Жыл бұрын

    Same doubt?

  • @shubhamdhiman3365

    @shubhamdhiman3365

    Жыл бұрын

    ​@@crazyduniya128 pls elaborate

  • @crazyduniya128

    @crazyduniya128

    Жыл бұрын

    @@shubhamdhiman3365 here pointer is pointing to the whole array, not just the first value, so when you dereference p, that is *p , not printing 11. Check if *(*p) works or not?

  • @shubhamdhiman3365

    @shubhamdhiman3365

    Жыл бұрын

    ​@@crazyduniya128 Thanks

  • @ayanmalik_official
    @ayanmalik_official Жыл бұрын

    Sir c++ me dsa ke lactur bhot h but java k dsa bhut hi limited hai and smj m bhi nhi ata h sir plzzzzzzzzzzzzzz java me dsa lao i request you sir plzzz help 🥺

  • @QurbaniWithUmarBhai
    @QurbaniWithUmarBhai7 ай бұрын

    Well explained ❤

  • @namanomar7060
    @namanomar7060 Жыл бұрын

    sir please increase the frequency of the lectures if possible....

  • @nikkhilmaurya

    @nikkhilmaurya

    Жыл бұрын

    Yes (+1)

  • @ipllive6607

    @ipllive6607

    Жыл бұрын

    @@nikkhilmaurya no-1

  • @user-ey3jg7fr2p
    @user-ey3jg7fr2p10 ай бұрын

    Sir *p karne se to value print hoti he magr ap ne end pe jo code likha is me address q print ho raha he

  • @sy_b_50_shahilsingh
    @sy_b_50_shahilsingh Жыл бұрын

    sir can u please tell ?? linkedlist,stack,queues kb tk aayga?

  • @DOINGSOLUTIONS
    @DOINGSOLUTIONS11 ай бұрын

    Thanks uncle

  • @AbhaySingh-om3vw
    @AbhaySingh-om3vw Жыл бұрын

    Thank sir 😊

  • @jaiswalsourabh8027
    @jaiswalsourabh8027 Жыл бұрын

    have DSA been started or not?

  • @Shivam-bz8qy

    @Shivam-bz8qy

    Жыл бұрын

    No

  • @ramakrishna_m
    @ramakrishna_m Жыл бұрын

    Sir after pointer do problems on strings

  • @ecoboy7829
    @ecoboy7829 Жыл бұрын

    Where is the pointers-1 video in the playlist? Please upload all the vdos in correct order, it is creating inconvenience.

  • @Aakxsh2217
    @Aakxsh22174 ай бұрын

    I under the pointer concept but i noticed if you don't use the void function the program still swap these values can you tell me how

  • @hydra-pq7ob
    @hydra-pq7ob6 ай бұрын

    i have one question about pointer if given a matrix so how we access this matrix to use pointer is it true:- *( *(arrr+i) + j)

  • @neelasatyasai6852
    @neelasatyasai6852 Жыл бұрын

    sir i am unable to understand pointer pointing to entire array?

  • @nirajmore4904
    @nirajmore4904 Жыл бұрын

    Sanket sir op

  • @user-mq3ey8zh1l
    @user-mq3ey8zh1l6 ай бұрын

    sir I have a doubt in the last code How *p,p value are same

  • @status..366
    @status..366 Жыл бұрын

    sir kissi bhi lecture ka note nahi show kar raha hai plz sir note dijiye sir

  • @user-ey3jg7fr2p
    @user-ey3jg7fr2p10 ай бұрын

    Sir end pe jo concept dya wo samaj nai aya

  • @52_it_rohitmukherjee99
    @52_it_rohitmukherjee99 Жыл бұрын

    Last me jo array type pointer tha wo thoda samajh nahi aaya

  • @mithilshah6087
    @mithilshah6087Ай бұрын

    DOUBT: In the swapping example, I don't understand how does the swapping take place. We de-reference x,y (ie local scope variables) which shall swap the memory address which these variables/buckets contain. But it accesses the value, which means it somehow got de-referenced twice ?? Can someone please help me out ?

  • @pushprajdwevedi7252
    @pushprajdwevedi7252 Жыл бұрын

    It was helpful video

  • @sanketsingh1094

    @sanketsingh1094

    Жыл бұрын

    🎉

  • @ecoboy7829
    @ecoboy7829 Жыл бұрын

    In an array the array name acts as a pointer for the first element of array. Is this valid only for C++ or for any other language?

  • @sanketsingh1094

    @sanketsingh1094

    Жыл бұрын

    C and c++ only Other languages like java dont have pointers

  • @nikkhilmaurya

    @nikkhilmaurya

    Жыл бұрын

    @@sanketsingh1094 Sir your teaching style is superb. So, Please don't compromise with content of the video and if possible please upload lectures in every two days(like you were doing before). Thanks.

  • @mishtub2432
    @mishtub24328 ай бұрын

    4:38

  • @SarveshBamaneVlogs
    @SarveshBamaneVlogs3 ай бұрын

    how we can get the notes of this course,,,,,plz reply

  • @kdpsharma3087
    @kdpsharma3087 Жыл бұрын

    Sir aapka pointer ka lecture 1 2 3 me pdf nhi khul rha hai please send the pdf immediately

  • @pwlivestudy4997

    @pwlivestudy4997

    Жыл бұрын

    Bhai PDF kaha milegi Pw skill app me to ye corsh dikh hi nhi rah Plz bhai notes me problems ho Rakhi hei❤❤

  • @harshvardhan_singh1130
    @harshvardhan_singh113011 ай бұрын

    Kuchh notes bhi bnwaya kro sir

  • @kdpsharma3087
    @kdpsharma3087 Жыл бұрын

    Sir pdf

  • @RajatKumar-lx4eh
    @RajatKumar-lx4eh Жыл бұрын

    Please web development ka course leke aaiye pls pls pls

  • @Zuva69
    @Zuva69Ай бұрын

    Kuch jada hi lengthy video nahi ho gaya bus itna simple topic ke liye

  • @anshulvishwakarma3238
    @anshulvishwakarma3238 Жыл бұрын

    the way you teach programming is amazing much more batter then urviiiiii ma`am ✨✨✨✨✨

  • @fourtalent727
    @fourtalent7273 ай бұрын

    lecture to ach tha he ap k face k expresion kmaaaaal thy

  • @krishsonvane
    @krishsonvane6 ай бұрын

    bro sounds like ezsnippet

  • @vivekparde2022
    @vivekparde2022 Жыл бұрын

    Java ka lecture kab aayega

  • @carljohnson4592

    @carljohnson4592

    Жыл бұрын

    alternate days

  • @vivekparde2022

    @vivekparde2022

    Жыл бұрын

    @@carljohnson4592 brother Aaj hi tha vo day

  • @AKASHKUMAR-li7li
    @AKASHKUMAR-li7li6 ай бұрын

    I think that pointer to array need to be elaborated more.... a little bit disappointment here😶

  • @gulshan07dev
    @gulshan07dev Жыл бұрын

    Sir basics kab tak chalega. DSA kab shuru hoga 😀❤️🙏

  • @Anshnishad6642

    @Anshnishad6642

    Жыл бұрын

    Bahut tej ho rahe ho

  • @earningwithravindra8743

    @earningwithravindra8743

    Жыл бұрын

    Dekh rho ho vinod

  • @closetoheart6120

    @closetoheart6120

    Жыл бұрын

    is this dsa course as well ????

  • @sanketsingh1094

    @sanketsingh1094

    Жыл бұрын

    Recursion is going to start immediately after pointers so technically dsa part is gonna start in 2-3 videos

  • @gulshan07dev

    @gulshan07dev

    Жыл бұрын

    @@sanketsingh1094 thnx sir❤❤,,sir aap ho..?

  • @Shivam-bz8qy
    @Shivam-bz8qy Жыл бұрын

    Agar m KZread pr coding sikhane lagu to kon kon sikhna chahega mujhse??

  • @Manoj_2426

    @Manoj_2426

    Жыл бұрын

    Bhai mere se Sikh le

  • @Manoj_2426

    @Manoj_2426

    Жыл бұрын

    Tu

  • @Shivam-bz8qy

    @Shivam-bz8qy

    Жыл бұрын

    @@Manoj_2426 ha obviously m to sikhunga hi isliye to

  • @mirzaahteshambaig9197

    @mirzaahteshambaig9197

    Жыл бұрын

    @@Manoj_2426 🤣

  • @UECPAPPUKUMAR
    @UECPAPPUKUMAR Жыл бұрын

    🆓🆓🆓🆓

  • @gulshan07dev
    @gulshan07dev Жыл бұрын

    kon kon boiler plate copy krta hai🤣🤣😡

  • @AbhishekKumar-lu3lp

    @AbhishekKumar-lu3lp

    Жыл бұрын

    Tum kon si class me ho

  • @gulshan07dev

    @gulshan07dev

    Жыл бұрын

    8th class

  • @AbhishekKumar-lu3lp

    @AbhishekKumar-lu3lp

    Жыл бұрын

    @@gulshan07dev aap abhi se coding kar rahe hai

  • @krishnarajbhar767
    @krishnarajbhar7675 ай бұрын

    47:31