BRAINFUCK Programming Language
Programing Language that made the computer smart. Each programming language has shown its own talent to the world so, here are some of the most commonly know or unknown.
Whenever someone enters 's into the field of the computer it's necessary to know at least some of the programming language. But even thus there are many languages that are being invented or discovered every night. All them are having special features.
The Difficult languages that are more complex to understood had only stood out of the college class. Let's see one of those programming languages.
Brainfuck
Brainfuck is an esoteric programming language created in 1993 by Urban Müller. The special feature that made it difficult was nothing but it had only 8 commands in this language. Brainfuck simply requires one to break commands into microscopic steps. Now, think how hard it is just printing a hello statement with 8 commands.
[Program to print Hello World ]
++++++++++[>+++++++>++++++++++>+++>+<<<<-]>++.>+.+++++++
..+++.>++.<<+++++++++++++++.>.+++.------.--------.>+.>.
To understand the program you need to learn the below 8 characters used as commands to perform different operations
Character/cmd | Meaning/Perform |
---|---|
> | increment the data pointer (to point to the next cell to the right). |
< | decrement the data pointer (to point to the next cell to the left). |
+ | increment (increase by one) the byte at the data pointer. |
- | decrement (decrease by one) the byte at the data pointer. |
. | output the byte at the data pointer. |
, | accept one byte of input, storing its value in the byte at the data pointer. |
[ | if the byte at the data pointer is zero, then instead of moving the instruction pointer forward to the next command, jump it forward to the command after the matching] command. |
] | if the byte at the data pointer is nonzero, then instead of moving the instruction pointer forward to the next command, jump it back to the command after the matching[ command. |