Komentáře •

  • @HarxhPlays
    @HarxhPlays Před rokem +1

    solved my doubt on string address stored on pointer. Thank you :)

  • @muskaan1537
    @muskaan1537 Před 4 lety +2

    Nice video thanks for helping students.

  • @VasaMusic438
    @VasaMusic438 Před 4 lety

    great lesson !!

  • @indranilkarmakar6712
    @indranilkarmakar6712 Před 5 lety +9

    Please... It is my humble request to start control system as soon as possible... We need neso academy explanation on all ece subject. Salute to neso team.... Thanks🙏🙇

  • @spreadingtheknowledgeoflight

    Please make some videos on OOP in C++.

  • @ArunKumar-td4xf
    @ArunKumar-td4xf Před rokem +1

    can someone explain me y we use print("%s",p) but not printf("%s",*p)

  • @cadetvaishali716
    @cadetvaishali716 Před 4 lety +2

    Gorgeous ❤️😍 video sir

  • @sukshithshetty4847
    @sukshithshetty4847 Před rokem

    how to modify a charater array using a character pointer in c?

  • @qandos-nour
    @qandos-nour Před 4 lety

    Thank you bro

  • @lovepreet4210
    @lovepreet4210 Před 4 lety

    Sir can't we change order og letters???

  • @sefrofchan430
    @sefrofchan430 Před 5 lety +2

    Sir please complete discrete Mathematics series.....

  • @celilylmaz4426
    @celilylmaz4426 Před 5 lety +8

    Sir, could you explain that why do we use pointers?
    Also your videos are very good and helpful, thank you :)

  • @MathLogicNo1
    @MathLogicNo1 Před 5 lety

    Very best video

  • @rhl_
    @rhl_ Před 2 lety

    Some good stuff

  • @ramarajujaya2480
    @ramarajujaya2480 Před 3 lety +1

    bhaiya, u said that character pointer has been allocated read write memory ,so the same pointer can point to some other string literal.then why i am getting error in the below c program:
    #include
    int main()
    {
    char *ptr="Hello";
    *ptr="World";
    printf(ptr);
    getchar();
    }
    i thought the output will be World.
    pls can anyone expplain this

    • @kO_EC
      @kO_EC Před 3 lety

      Only 1st element will be modified output would be wello

    • @nishant6858
      @nishant6858 Před 3 lety +2

      Removing the * operator from 2 nd line will solve the problem .As by using * will mean that change the value at position of 'H' which is not possible as it is a string literal...

  • @roccomannyt9027
    @roccomannyt9027 Před 5 lety

    Sir can u please make the videos as soon as possible...

  • @RajaKumar-yx1uj
    @RajaKumar-yx1uj Před 4 lety +1

    is *ptr equivalent to ptr[] ? , ptr[]="Hello"; ptr[0]=m; output: mello ,means it is working

    • @mihirjain7903
      @mihirjain7903 Před 4 lety +2

      ptr[] refers to array of characters and *ptr refers to string literal.

    • @moulika6637
      @moulika6637 Před rokem

      *ptr==ptr[0]
      *(ptr+1)==ptr[1]
      *(ptr+i)==ptr[i]

  • @compilerrun5516
    @compilerrun5516 Před 3 lety +2

    Sir can we print string literal by loop?

  • @gedalaarthika2497
    @gedalaarthika2497 Před 2 lety

    Sir can you please do videos on python language sir

  • @shivamhawale5591
    @shivamhawale5591 Před 4 lety

    What is read write memory and read only memory?

    • @howboutno2776
      @howboutno2776 Před 3 lety

      RWM means you you can read or write the value from/of the memory. Let´s say you store value 1. RWM enables you to check the value and at the same time you are able to rewrite it for example to 2. ROM (read only memory) on the other hand only enables you to check the value from the memory. So you store value 1. Then you can check what´s the stored value. You can´t however rewrite it, change it.

  • @rayeesuraj7190
    @rayeesuraj7190 Před 3 lety

    Can't We Use Designator for the String array Sir 🤔🤔😅

  • @minipk3695
    @minipk3695 Před rokem +2

    #include
    int main()
    {
    char str[20] = "Hello";
    char *const p=str;
    *p='M';
    printf("%s
    ", str);
    return 0;
    }
    This program outputs Mello..
    If we can't change string using pointer how this is happening??

  • @akashpurbia4390
    @akashpurbia4390 Před 4 lety +10

    char *p="hello";
    *p='m';
    printf("%s",*p);
    when i run this code output is =mello.why? i'm confused .

    • @hans_tech0015
      @hans_tech0015 Před 4 lety +1

      string cannt be modified,,,,,,,,,,,,,,,,,what u have done here you just modified a string and that cant be allowed in c alngg

    • @bablikumari5015
      @bablikumari5015 Před 4 lety +2

      Because u put m instead of h..strings always take a first element..

    • @danverzhao9912
      @danverzhao9912 Před 3 lety +1

      *p = 'm' is the first char

    • @ritamchatterjee3307
      @ritamchatterjee3307 Před 3 lety +2

      @@hans_tech0015 but here at 3:10 he is saying we can't alter them

    • @ritamchatterjee3307
      @ritamchatterjee3307 Před 3 lety

      @@danverzhao9912 why,don't understand

  • @shivamhawale5591
    @shivamhawale5591 Před 4 lety

    What is read write memory and read only memory?

    • @AryanSingh-kj9fm
      @AryanSingh-kj9fm Před 3 lety

      read write memory is a memory where you can give an input as well as read. And read only is where you can only see the output and cannot give input