• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

paytonrules/PointerKoan: I wrote a simple pointer koan in C, to practice my poin ...

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称:

paytonrules/PointerKoan

开源软件地址:

https://github.com/paytonrules/PointerKoan

开源编程语言:

C 95.0%

开源软件介绍:

Pointer Arithmetic Koan

This very simple koan is taken from the tradition of the Ruby koans, Clojure Koans, Smalltalk Koans and others, but was written on a train in a fit of rage. That means it's short, sweet, and to the point.

This is a few tests to brush up on your pointer arithmetic. The memory block is setup as an array of 255 bytes with values from 0 - 254. Several pointer operations take place, and it's your job as the developer to figure out what the correct values are to make the program complete. Use it as flashcards and you'll never screw up pointers like I did again.

Running

make test

This will run the program and tell you where the first failed assertion is. Make this program run to completion, and you've done a pretty good job of learning pointer arithmetic.

Contributors

Hat tip to @sdegutis for updating the koans to get rid of the dependency on C++ and on CMake. @sdegutis accepts checks or cash.

This code is released under the MIT license Copyright Eric Smith 2019




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
NewbMiao/opa-koans: koans for OPA发布时间:2022-06-24
下一篇:
indreklasn/koa-graphql-mongodb: Tutorial how to set up koa with graphql and mong ...发布时间:2022-06-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap