Size of Pointers | C Language Tutorial

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

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

  • @VenugopalNarsingoju
    @VenugopalNarsingoju 7 лет назад +70

    Wonderful Teaching sir, it helps lot of students to clear their concepts in C which help to lead to learn any other programming languages. Thank you for your valuable teaching

  • @saimanasab7386
    @saimanasab7386 3 года назад +23

    omg, thank youu sooo muchh sirr...live longer and stay blessed sir

  • @Kamna_Jha
    @Kamna_Jha 5 лет назад +17

    Incredible explaination sir
    Couldn't thank you enough. I would even pay for your lectures which I rarely do online, but you worth it. Thank you so much.

  • @abhishekmanral8289
    @abhishekmanral8289 4 года назад +16

    Explained everything in a great way atleast better then that of University Professors..... Helped me a lot to clear my doubts ...Thank you sir🙏🏼💫

  • @pariminagalakshmi5517
    @pariminagalakshmi5517 3 года назад +3

    great sir!! In C LANGUAGE i found only 2 channels are best ,one is Naresh i tecnologies and other is Neso Academy.These two r teaching in best level...,once again thank u soo much sir..

  • @mahithar1543
    @mahithar1543 6 лет назад +10

    awesome teaching sir!!! A non CS student can easily learn the concept. very helpful! Thank you sir.

  • @giridharanp9182
    @giridharanp9182 3 года назад +4

    I could not express my gratitude in words sir. You are so Wonderful in your teaching methods sir. and you helped a lot during online classes.

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

    I have never come across to any Indian teacher with this much clarity both in teaching and English speaking.. thanks for this quality teaching

  • @lucasf.v.n.4197
    @lucasf.v.n.4197 3 года назад +4

    Well done, but it could have been better explained;
    When you declare
    int a=2;
    Considering 4 byte int (32 bits) and address of a (&a) equal to 1000 (random), it means that the first 8 bits of a are stored in byte #1000, then the next 8 bits in byte #1001, the next 8 bits in byte #1002 and the last 8 bits in byte #1003

  • @kadeejath5358
    @kadeejath5358 3 года назад +3

    Great video.Thank you so much sir..💜.Wonder full teaching...more understanding☺

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

    U r great teacher....I have met many so called teacher...Actually cheater..They have collected money and taught bullshit...And I hv go there for project...He also not completed project.....So disbelief comes to mind that most so called teacher r evil for society...But some of teachers like u r boon for society....Respect from heart
    U r doing wonderful job..

  • @swathijinka6739
    @swathijinka6739 5 лет назад +7

    Awesome teaching sir...I have never seen such a clear explanation...Thank you so much....Have a bright future

  • @SajjadKhan-ow5ub
    @SajjadKhan-ow5ub 4 года назад +5

    Thank u Sir. You lectures will help me a lot in my MIT. Salute Sir Jee.

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

    Sir ....I am thankful to you..the way u explain these contents...it directly goes into my mind...really you explain the things in an easy manner...the best thing about ur lectures are that..you are so calm and the way u hold your patience is amazing...

  • @adarshchaudhary6529
    @adarshchaudhary6529 2 года назад +1

    sir you have cleared my very big concept thank you very much

  • @sujin8380
    @sujin8380 6 лет назад +8

    Excellent teaching sir.good

  • @naveenbandi9193
    @naveenbandi9193 7 лет назад +4

    Excellent sir it helps to understand c in easy way

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

    Extraordinary teaching this class is so helpful to me

  • @mrexpert1854
    @mrexpert1854 5 лет назад +10

    Sir you said if the pointer is 2 bytes it will only access 2^16 memory blocks.... now when we are using float or double pointer of 2 byte memory how can it points to the 4 bytes or 8 bytes of data addresses?

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

      address also lies btwn 2^16

  • @shalendrakumar6273
    @shalendrakumar6273 2 года назад +1

    You are great teacher for programming

  • @tausal1
    @tausal1 7 лет назад +6

    Great explanation! Thank you sir.

  • @tamilmaranc
    @tamilmaranc 4 года назад +2

    too excellent teaching ur great great sir.....too thankful for posting this video

  • @anjubittu1395
    @anjubittu1395 7 лет назад +3

    Great Explanation Sir, thank you very much, its very easy to learn C in a simple way!

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

    Great conceptual clearity in your lectures 🙏

  • @mukeshmanohar3919
    @mukeshmanohar3919 4 года назад +2

    Thank u sir.. for... Explaining.. This... Concept!!

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

    u r really great sir...keep teaching...and thankyou sir.

  • @rohanparkar
    @rohanparkar 5 лет назад +4

    Like karo yaar itna acha sikhaya hai to .Itne views hai achha lago to like karo.Encourage such people.

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

    Best teacher I saw, thank you sir

  • @vk-5431
    @vk-5431 3 года назад +1

    clearly explained sir...Thank you

  • @unknown___person
    @unknown___person Год назад

    Awesome. I never learnt in university.

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

    dislike krme wale sir ke koi kreebi dushman honge..teaching style is very nice .ye jo dislike kiye kabhi kamyab na hone wale hain

  • @ravuriofficial2891
    @ravuriofficial2891 5 лет назад +5

    Sir, I need complete information about function pointers,about of volatile keyword

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

    This is the only channel that gives a conceptual understanding of C.

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

    Iam full satisfied with ur lectures sir

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

    awesome teaching sir

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

    Sir plzz explain about structure and union sir

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

    I like your way of teaching

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

    super 👍

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

    Good Teaching, Easily understand the concepts...Keep Going

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

    It's interview related question..!! Wonderful

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

    how good you are/....so nicely explained

  • @Sunny-cx8ki
    @Sunny-cx8ki 4 года назад +1

    thank you very much sir

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

    sir your class is good but please explain in bitswise in values ,how output value is change

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

    sir as you say that pointer size range is 2^16 bit if address of variable is exceed to 2^16 than what is the size of the pointer sir??
    suppose variable address is 123454678 than it is exceed from 2^16 than pointer is store address i.e :-123454678 than how the pointer is 2 byte
    it is the doubt sir hope you give reply of this problem

  • @goyaldeekshant
    @goyaldeekshant 4 года назад +2

    Here is the complete code for: Size of pointers:
    #include
    struct emp
    {
    int* eno;
    char* ename;
    float* esal;
    };
    void main()
    {
    char* cp;
    int* ip;
    struct emp* sep;
    printf("size of char* is: %d",sizeof(cp));
    printf("size of int* is: %d",sizeof(ip));
    printf("size of emp* is: %d",sizeof(sep));
    }

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

      iam getting 4 errors near printf line

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

      @@dasidharani4589 Don't worry. With a relax mind, once check again. What are those errors?

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

    Thank you so much sir.Explained very well🤗

  • @VinodKumar-pn7wm
    @VinodKumar-pn7wm 6 лет назад +1

    nice explanation sir, can you please tell me how struct emp occupied 26 bytes,thanks in advance

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

    wonderful Teaching sir.

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

    Excellent teaching 👏👌👍

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

    Best teacher... Thank you so much for ur efforts

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

    Now my doubt is clear thank you sir

  • @sunnye3350
    @sunnye3350 5 лет назад +6

    Damn great, bit slow, I have to increase the speed of video, however, for the content is all oki.
    Thanks a lot for the effort.

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

    Thank you sir

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

    Explanation is very nice sir

  • @AartiKumari-tk7ey
    @AartiKumari-tk7ey 3 года назад

    Thanks you so much sir , you lectures are very helpful

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

    Sir, in the size of function could we write like sizeof(cp*) even after declaring it like char* cp? Please please clarify.

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

      same doubt!... if u got clarified ...please tell me

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

      @@rohanjosh5752 same doubt clarify please

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

      @@matambasavaraju3430 what is your doubt brother?

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

    example scenario too excellent

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

    wonderful explanation of pointer address

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

    Sir please upload the concept of self referential structures

  • @GaneshKumar-hm1pu
    @GaneshKumar-hm1pu 3 года назад

    Hi sir I have one doubt in which scenario pointer variable will already occupies 1byte memory from 2bytes can you please explain with example

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

    Sir, if we initialising the pointer as char or float, then how can we store the address , which will be of integer type ?

  • @359srinivasaraman2
    @359srinivasaraman2 4 года назад

    crystal clear sir

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

    sir can you please explain oops concept you explain better than other professor please sir teach us c++ oops concept

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

    Great teacher

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

    Sir why only the integer size alone changing not anyother type or does any other datatype also change its size of memory? Pls ans

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

    Happy teachers day sir

  • @pooja6781-l6n
    @pooja6781-l6n 3 года назад

    Nyc explanation sir

  • @karanghaint7827
    @karanghaint7827 7 лет назад +2

    it was really helpful

  • @PraveenYadav-qj3ex
    @PraveenYadav-qj3ex 3 года назад

    Thanks sir

  • @keerthikutty2055
    @keerthikutty2055 7 лет назад

    tqq u sir easy way to understand

  • @sharonroja8257
    @sharonroja8257 7 лет назад

    very helpful sir your lectures

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

    GOD IN THE FORM OF U SIR

  • @sangeethachandhar3742
    @sangeethachandhar3742 6 лет назад

    you are an awesome faculty.....

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

    Is this topic important to get placed in a software company? I mean size of pointer and whole pointers topic

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

    I have a doubt , if pointers have same size then is it possible to use "int" type pointer to store address of "char" type data and vice versa?

  • @santhoshramos6925
    @santhoshramos6925 6 лет назад +8

    this makes difference between the great teacher from the good teacher

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

    Thank you sir ❤️

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

    Best sir👍🏻👍🏻👍🏻👍🏻👍🏻

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

    lecturer, student -great sceanrio

  • @naveenkumar-ho1kh
    @naveenkumar-ho1kh 5 лет назад

    very nice sir

  • @shivanigadekar4281
    @shivanigadekar4281 6 лет назад

    Very cool technique.....

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

    Thanks a lot sir. You are the best.

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

    Beautiful

  • @MrPrashantkulkarni
    @MrPrashantkulkarni 6 лет назад

    nice teaching,sir lot more...get thanks

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

    Thankyou sir!!!

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

    Ty so much

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

    thalivaaaaaaaaaaaaaa ur great.....................

  • @aswinaspirant4100
    @aswinaspirant4100 4 года назад +2

    i have a doubt , is there any difference between pointers in c vs pointers in c++ ?

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

    sir plz discuss the size of void pointers

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

    Superb sirji

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

    Nice information

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

    Excelent explanation sir

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

    thank you

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

    sir as you told that it will either 2 or 4 then I executed the same code in DEV c++ with only int & char
    but here in this, I am getting output as 8.
    why sir ???

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

    great too clear

  • @sharonroja8257
    @sharonroja8257 7 лет назад

    very helpful sir

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

    U teach amazing sir...but u should smile sometimes.... please...

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

    thnk u sir

  • @nbikash
    @nbikash 7 лет назад +1

    16 bit compiler size of short should be 1 byte

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

    Char *p="string";
    In this case wha 'printf("%s",*p);' should print?
    Please answer..

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

      char str[25]="string" , * p =str;
      printf("%s
      ",p);
      You should write it this way to print out string > as *p must point to another address location and "string" dose not have an address in the memory and it is wrong way to initialize a pointer

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

      also you can print any string using loops but you will print character by character until you reach the NULL '\0' terminator..
      char str[25]="string" , * p =str;
      for(int i =0 ;*p!='\0' ;i++)
      {
      printf("%c",*p++);
      }