Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

8
  • \$\begingroup\$ How do you give it input? \$\endgroup\$ Commented Jul 24, 2014 at 18:34
  • \$\begingroup\$ @Claudiu See the example. It's a command-line argument. \$\endgroup\$ Commented Jul 24, 2014 at 18:36
  • \$\begingroup\$ That's the program. But look at the 7th bullet point. You should be able to initialize the initial RAM array to, say, "hello" via stdin or an argument \$\endgroup\$ Commented Jul 24, 2014 at 18:47
  • \$\begingroup\$ My mistake, it's the 6th bullet: "When program starts executing a prompt for input string should be displayed (or take input from command line arguments, it's up to you). Input string should not contain null character (zero byte). Then input string is written to RAM starting at zero index." \$\endgroup\$ Commented Jul 24, 2014 at 18:52
  • \$\begingroup\$ @Claudiu Ah, I knew I overlooked something, thanks. Now, upon running the program, you can input said string. \$\endgroup\$ Commented Jul 24, 2014 at 18:56