编写一个在C中分配100个字符数组的函数
编写一个分配一个的函数 堆中有100个字符的阵列,如果其索引将它们设置为“ b” 可以除以9和“ 1”,否则可以将堆交给堆 大批。
我该怎么做?
Write a function that allocates an
array of 100 chars in the heap, sets them to ’b’ if their index
is divisible by 9 and to ’1’ otherwise, and deallocates the heap
array.
How do I do this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这应该做到,但我无法测试。
This should do it, but I couldn't test it.