Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Challenges

Post History

50%
+0 −0
Challenges Reverse an ASCII string

Brainfuck, 10 Bytes ,[>,]<[.<] Requires EOF to be 0. Try it online! ,[>,]<[.<] , # Read character [ ] # loop as long as current cell is not 0 (EOF) >, ...

posted 9mo ago by H_H‭  ·  edited 9mo ago by H_H‭

Answer
#2: Post edited by user avatar H_H‭ · 2023-08-01T08:29:38Z (9 months ago)
  • ## Brainfuck, 10 Bytes
  • `,[>,]<[.<]`
  • Requires EOF to be 0.
  • ## Brainfuck, 10 Bytes
  • ```,[>,]<[.<]```
  • Requires EOF to be 0.
  • [Try it online!](https://tio.run/##SypKzMxLK03O/v9fJ9pOJ9YmWs8m9v//tMTilLT0jKzsHAA "brainfuck – Try It Online")
  • ```
  • ,[>,]<[.<]
  • , # Read character
  • [ ] # loop as long as current cell is not 0 (EOF)
  • >, # read and fill the tape to the right with the read characters
  • < # go back to the last valid character, i.e. one before EOF
  • [ ] # loop till current cell is 0 (i.e. cell pointer is before the first read character
  • .< # output character and move left
  • ```
#1: Initial revision by user avatar H_H‭ · 2023-08-01T08:19:51Z (9 months ago)
## Brainfuck, 10 Bytes


`,[>,]<[.<]`


Requires EOF to be 0.