Register Variables | C Programming Tutorial

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

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

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

    You have really helped me a lot man! thanks a bunch

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

    Hello! Your videos are very helpful.
    Could you make some assembly programming tutorial in the future and show how to combine C with asm?

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

      I'm glad to hear you enjoy the videos Mátyás! :-) And it's not something that I can do right away, but maybe one day in the future I can cover assembly programming (and how to combine it with C), thank you for the suggestion.

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

    Woooow, your course is awesome. Could you please talk about C for advanced programmers?

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

      Are there any advanced topics in particular you would like to see covered?

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

    hi sir after your explanation I have doubt
    #include
    int main() {
    printf("portfolio course youtube channel
    ");
    register int a=1;
    register unsigned int d=3;
    register int b=13;
    register int c=12;
    printf( "%d", b,"%d",c);
    return 0;
    }
    in the. above program I have declared and assigned to them with int values later I am trying to print them on. console but the problem is only one value I am seeing on the output screen. why it's not possible to print all the value. and I read some articles they were saying if many register variable are created the compiler decide which value to stored in cpu register and rest of them will remain in ram if those variable are stored in ram why i am unable to print them at one time.. thank you sir..

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

      Great question Rama, I think it's just because the printf is like this:
      printf( "%d", b,"%d",c);
      But it needs to be like this:
      printf("%d %d", b, c);
      with only one format string as the first argument, followed by an argument for each placeholder like %d in the format string. :-)