C_97 Passing String as an Argument to a Function | C Language Tutorials

แชร์
ฝัง
  • เผยแพร่เมื่อ 20 ม.ค. 2025

ความคิดเห็น • 89

  • @rohitkanojiya7960
    @rohitkanojiya7960 2 ปีที่แล้ว +61

    in function main 19:54 we are declaring a pointer & a pointer stores only address of any variable but there we are trying to strore characters ,hence it's not working.

    • @sudhanshukushwaha6351
      @sudhanshukushwaha6351 2 ปีที่แล้ว +2

      yos bro 😉

    • @UdaykumarKUday-yd9ut
      @UdaykumarKUday-yd9ut 2 ปีที่แล้ว +2

      Tq

    • @jaijaijaijai123
      @jaijaijaijai123 4 หลายเดือนก่อน +1

      actually char* str="abc"; , the string is stored in read only memory and can't be modified. When we try to modify it, it gives undefined behaviour and segfault at times

  • @misturaojulari9707
    @misturaojulari9707 ปีที่แล้ว +28

    In 19:47 - Pointers are read-only, meaning they cannot be modified when used to declare a variable, but arrays are read-and-write, which means their values can be changed. So in the main function, the strings should not be declared as character pointer arrays, they should be declared as character arrays i.e.:
    char str1[ ] = "string" and char str2[ ] = "string".

  • @abhishekpraturi536
    @abhishekpraturi536 3 ปีที่แล้ว +30

    mam could you please start python classes as your teaching is excellent and you are providing detail information in every class

  • @nithyasaitejareddysangati6311
    @nithyasaitejareddysangati6311 3 ปีที่แล้ว +17

    Char* str1 in main will give an error.since we are defining str as a pointer which store address of a char but it got string as value.

  • @Unknown_.user_115
    @Unknown_.user_115 วันที่ผ่านมา +2

    In 11:55 like as we are calculating the string length so can't we use strlen() for calculation ?

  • @mehtadhairya1599
    @mehtadhairya1599 3 ปีที่แล้ว +4

    Thank you so much mam ! You make me understand very nice. I learnt so much from you. You explain the concept so nice that there is no need to watch the video again. 🙏

  • @atlatl3033
    @atlatl3033 3 ปีที่แล้ว +2

    Jenny i found you and i am so happy.
    Greetings from Caucasus

  • @akshatshrivastava1580
    @akshatshrivastava1580 3 ปีที่แล้ว +1

    DAMN, SO UNDERSTANDABLE IT IS . THANKU FOR MAKING IT EASY.LOVE THE WAY YOU TEACH AND HOLD INTEREST .

  • @-A44sh3
    @-A44sh3 3 ปีที่แล้ว +2

    Confident and jolly teaching. 👍☺ Great skill.

  • @mujahidkhan-nz1ts
    @mujahidkhan-nz1ts 3 ปีที่แล้ว +2

    Helpful for those who we're study...

  • @mohitrawat1773
    @mohitrawat1773 3 ปีที่แล้ว +6

    Mam please start c++ language after c language 🙏🙏🙏🙏

  • @priyabratasinha1478
    @priyabratasinha1478 3 ปีที่แล้ว +2

    Your efforts are appreciable ma'am 🙏🙏🙏🙂🙂🙂

  • @jyotirani8232
    @jyotirani8232 3 ปีที่แล้ว +3

    Good morning mam 🙏🙏🙏

  • @avulasudhakar2079
    @avulasudhakar2079 3 ปีที่แล้ว +1

    Ur explanation is super madam.I understood very well. I love u mam ❤️

  • @emirhandemir3872
    @emirhandemir3872 2 ปีที่แล้ว +6

    We can not change the 19:54 value because when we create a string with pointers, it is not actually a string , instead it is a string CONSTANT which can not be modified. It is read only type and ones we decleared it , we can not change but arrays are read write types whic allows users to modify. Am ı right ?

  • @vishalsonawane2361
    @vishalsonawane2361 3 ปีที่แล้ว +2

    hii mam you are explained very nice in all lectures thank you for good understanding

  • @Memer__Telugu__1
    @Memer__Telugu__1 3 ปีที่แล้ว +1

    I love you ma'am 💗 ur teaching is very good

  • @sayanjitnath7404
    @sayanjitnath7404 3 ปีที่แล้ว +2

    it is not running because we have to pass the address of str1 and str2 by using '&' operator in the function
    if the function call is modify(&str1,&str2); it should run

  • @ahmedkhalil7752
    @ahmedkhalil7752 3 ปีที่แล้ว +1

    You r great teacher
    Thank you ..😍

  • @dileshkumarkayala8851
    @dileshkumarkayala8851 2 ปีที่แล้ว +1

    Mam can you please tell me why program stop working when you declare string as pointer and passing it to a function.

  • @Omprakash-kz3zl
    @Omprakash-kz3zl 3 ปีที่แล้ว +4

    19:46 since we pass the address of a pointer we need to declare the function prototype with a double pointer

    • @randomone6973
      @randomone6973 3 ปีที่แล้ว +1

      Bro sorry to interrupt u
      Can u plz tell me why we need to declare a function with double pointer is that legit

  • @Aditya-kp1jo
    @Aditya-kp1jo 3 ปีที่แล้ว +4

    Mem can you make video playlist on c++ and java also 🙏

  • @kunalboxer4432
    @kunalboxer4432 2 ปีที่แล้ว

    At 13:26 i value is 5 so it will change 5th letter of khatri

  • @ami...611
    @ami...611 3 ปีที่แล้ว +1

    Great Explanation

  • @nandakanth3258
    @nandakanth3258 2 ปีที่แล้ว +2

    Multiplication of matrix using functions (one matrix reading function and multiple function)
    Can u do this, i doesn't find it on Google

  • @thegamerszone1931
    @thegamerszone1931 3 ปีที่แล้ว +1

    Thank You so much mam. Make VIdeo for python and R for begineers.

  • @himanshu-x8s6b
    @himanshu-x8s6b 2 หลายเดือนก่อน

    thank you mam ji

  • @shraddhapawar5674
    @shraddhapawar5674 3 ปีที่แล้ว +2

    Ma'am if possible take more questions from string and array

  • @AnotherEntrepreneur
    @AnotherEntrepreneur 3 ปีที่แล้ว +4

    Mam can you please start Java after this 🙏🙏🙏🙏🙏

  • @karanamgururaj6357
    @karanamgururaj6357 ปีที่แล้ว

    Hey guys I am getting the length of string 1 but i couldn't print the modified string 2 for the changes done at 19:47

  • @P.KEDITS4k
    @P.KEDITS4k 3 ปีที่แล้ว +1

    Good explanation 👍

  • @hariparuchuru3858
    @hariparuchuru3858 2 ปีที่แล้ว +1

    if we write as char* str[ ] = "jenny";
    then its not running so
    I think we use * for storing addresses which are numbers and here we are storing characters thats why it is stopped working.

  • @varigondasuchithra805
    @varigondasuchithra805 ปีที่แล้ว

    Mam will u please clear my dout.
    Mam in definition we have as void display(100) right
    But ,by printing the string we get Jenny
    How it is possible.....there also that has to print 100 only right.please clear my dout mam...

  • @mukeshkr5198
    @mukeshkr5198 ปีที่แล้ว

    thanku mam🙂
    can we find length of the array using range base for loop in other function ???
    please reply mam...

  • @AMANSINGH-zu4ry
    @AMANSINGH-zu4ry 2 ปีที่แล้ว

    how it can print some value in defination part becoz memory is vanished from defination after it return to calling function ?

  • @vishalsonawane2361
    @vishalsonawane2361 3 ปีที่แล้ว +3

    kya ahap personal classes de Sakti hain agar ahap de Sakti hain to ahap c programming and Java programming ki kitni fees logi

    • @botify9400
      @botify9400 3 ปีที่แล้ว

      Saade bhot tej ho rahe ho 🙄

  • @santhosh4832
    @santhosh4832 3 ปีที่แล้ว

    When will this playlist end like how many more videos is this gonna take ?
    Just wanted to know.

  • @pranjalneupane6876
    @pranjalneupane6876 3 ปีที่แล้ว +1

    Itni din tak kidarr chali thi sem nearly gonna finish🥺😤❤️

  • @physiotherapymedico6148
    @physiotherapymedico6148 3 ปีที่แล้ว +1

    Mam make video on applied multimedia technique with pratical 😁plzz mam reply me

  • @anujeetkunturkar780
    @anujeetkunturkar780 3 ปีที่แล้ว

    Skip 0:47 to 2:28

  • @hassanjawedqazi1627
    @hassanjawedqazi1627 3 ปีที่แล้ว +1

    it gave error because pointer was not declare to any variable or array address. e,g char *str=&array;

  • @skywalker-hg6qr
    @skywalker-hg6qr 4 หลายเดือนก่อน

    is it possible for with return with argument??

  • @tanzimahmed2886
    @tanzimahmed2886 3 ปีที่แล้ว +3

    Is there any plan for you to teach data science soon?

    • @krithikas357
      @krithikas357 ปีที่แล้ว

      Hllo bro..
      Are u a data science student?

  • @MOHDARIF-yq9ns
    @MOHDARIF-yq9ns 3 ปีที่แล้ว

    best lacture

  • @shraddhapawar5674
    @shraddhapawar5674 3 ปีที่แล้ว +1

    According to me char * str only store the first address of string

  • @ayushshinde7916
    @ayushshinde7916 3 ปีที่แล้ว +1

    OMG MAM! ap Computer Science ki Teacher hai na to ap ke Brain me konsa OS hai ?
    Mare Brain me to LEGACY GEN10 hai fully optimizer for speed, accuracy, emotions, analyzing & complexity and it was programmed by me and soon I will upgrade it by gen 11
    I have question ,
    Can you tell me the the Andromeda galaxy is programed is simulation for analyzing it which is the function is use for calculating the dark matter in tha galaxy which bind it in the group.
    Ans.-
    Get vaccine all of you guys 👦😘😉👏❤

  • @Mamata171
    @Mamata171 3 ปีที่แล้ว +2

    hit like whoever wish to continue the dbms lecture

  • @ganeswarsahoo1078
    @ganeswarsahoo1078 3 ปีที่แล้ว +1

    Mam please 🙏 replay me
    Which one is better B Tech cse from normal private college vs BCA from government autonomous college ??????

    • @vivek5807
      @vivek5807 2 ปีที่แล้ว +1

      BTech cse

  • @deepaksingsss
    @deepaksingsss 3 ปีที่แล้ว

    mam chehre pe ye glow konsi language sikhne se aata h?

  • @HONEYSingh-zy5yz
    @HONEYSingh-zy5yz 2 ปีที่แล้ว

    Mam, can u explain 19:54 part

  • @vijaysinghvijaywada5193
    @vijaysinghvijaywada5193 3 ปีที่แล้ว

    Love you mam...❤🖤😘

  • @भावेशगांधी
    @भावेशगांधी 3 ปีที่แล้ว

    Ma'am you can discuss all this thing in Hindi... please do this

  • @creatorpanel3230
    @creatorpanel3230 3 ปีที่แล้ว

    file handling topic bhi btado mam

  • @sohaibirshad4778
    @sohaibirshad4778 3 ปีที่แล้ว

    how many lectures left mam?..

  • @JSR003
    @JSR003 3 ปีที่แล้ว +1

    Mam can you please start JAVA classes

  • @toxicComment
    @toxicComment 3 ปีที่แล้ว

    Mam please ye batadoo ki C. Language ka course khtm kabb karoge🧐🧐🥺🥺

  • @Mamata171
    @Mamata171 3 ปีที่แล้ว

    plz continue dbms viodeos mam

  • @jashbeersingh7284
    @jashbeersingh7284 3 ปีที่แล้ว

    How many lectures left

  • @mujahidkhan-nz1ts
    @mujahidkhan-nz1ts 3 ปีที่แล้ว +1

    Hadona

  • @mdfaisal3104
    @mdfaisal3104 3 ปีที่แล้ว

    Mam u r so cute teacher and u looking so simple that’s why u r cute😍😍😍

  • @tinku0011
    @tinku0011 3 ปีที่แล้ว

    ♥️♥️

  • @TechPandit-nc8mi
    @TechPandit-nc8mi 3 ปีที่แล้ว

    Gate for mtech for data science and machine learning job.. compulsory

    • @TechPandit-nc8mi
      @TechPandit-nc8mi 3 ปีที่แล้ว

      Any idea I already completed MCA but so much carrier gap problem.. pls suggest something... What's your qualification

    • @TechPandit-nc8mi
      @TechPandit-nc8mi 3 ปีที่แล้ว

      If you have any idea pls reply

  • @yaswanthsiddhinatham5108
    @yaswanthsiddhinatham5108 3 ปีที่แล้ว

    ❤❤🥰

  • @aj24rat
    @aj24rat 3 ปีที่แล้ว

    It’s not pronounced “kai-rr”...it’s pronounced “ch-aa-r”.

  • @TopRTelugu
    @TopRTelugu 3 ปีที่แล้ว

    Your my crush ma'am 😘❤️

  • @palanikanuu5847
    @palanikanuu5847 3 ปีที่แล้ว +1

    Madam pls wait 5 years I marrage you 😊😊😊😊😊💐💐 I studying b.tech cyber security

  • @dhruvmachhi2990
    @dhruvmachhi2990 3 ปีที่แล้ว

    Ma'am i want to work with you as a thumbnail editor plz reply me if you are interested in it i will send some samples.
    Thank you.

  • @toxicComment
    @toxicComment 3 ปีที่แล้ว

    87 vedio akele C ki ho gai total kitni hongi

  • @SHYAM-bc8oz
    @SHYAM-bc8oz 3 ปีที่แล้ว

    Neet notes mam

  • @KANISHKARM-d8q
    @KANISHKARM-d8q ปีที่แล้ว

    Bit confusing

  • @sajujames71
    @sajujames71 3 ปีที่แล้ว

    Mam, whats your fathers name??....