Jump to content

Execute Brain****/C: Difference between revisions

Add some tags
(adding another example since the existing one doesn't support nested loops, probably a bug)
(Add some tags)
Line 1:
{{implementation|Brainf***}}{{collection|RCBF}}
==Version 1==
Simple BF engine with infinite tape support.
<lang c>#include <stdio.h>
Line 50 ⟶ 52:
The code can be fed from a file or anything else. Here it's entered directly (it reverses a string you type).
 
==Version 2==
{{incorrect}}
The below Hello World fails.
<pre>
>++++++++[<+++++++++>-]<.>>+>+>++>[-]+<[>[->+<<++++>]<<]>.+++++++..+++.>
>+++++++.<<<[[-]<[-]>]<+++++++++++++++.>>.+++.------.--------.>>+.>++++.
</pre>
<lang c>#include <stdio.h>
#include <string.h>
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.