Array Index Coding Trick | C Programming Example

แชร์
ฝัง
  • เผยแพร่เมื่อ 29 ธ.ค. 2021
  • A "coding trick" in C to access array elements with an unusual syntax of i[a] instead of a[i] with an explanation as to why it works. Source code: github.com/portfoliocourses/c.... Check out www.portfoliocourses.com to build a portfolio that will impress employers!
    Introduction to Pointers video: • Introduction to Pointe...
    Pointer Notation video: • Pointer Notation | C P...
  • แนวปฏิบัติและการใช้ชีวิต

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

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

    Awesome, I love this trick! I’m waiting for more!

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

      Cool! Here is another trick video you might not have seen yet: th-cam.com/video/_rr2AgzB8RI/w-d-xo.html

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

    Amazing video sir,can you please do a video about how to delete all elements in array equal with a value given by user

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

      By delete the elements, do we shift forward the other elements of the array or do we re-size the array dynamically? Is the question/problem written down anywhere?

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

      Here you go: th-cam.com/video/1uf75EJsveU/w-d-xo.html. :-D There are a couple ways we could interpret "deleting an element from an array", but this is one of them.