Finite state machine: Difference between revisions

m
→‎{{header|C}}: Remove vanity tags
m (→‎{{header|C}}: Remove vanity tags)
Line 74:
This is an unapologetic implementation of goto. There have been a lot of curse words and obituaries written about it and the inventors of Java were glad to exclude it from the language, but to be fair, goto is one of the many things C inherited from languages such as Assembly or BASIC that make it truly awesome, especially when it comes to such requirements. After all, can there be a clearer and simpler implementation of a Finite State Machine (not counting BASIC ) ?
<lang C>
/*Abhishek Ghosh, 25th October 2017*/
 
#include<stdio.h>
 
Line 133 ⟶ 131:
Thank you, shutting down now.
</pre>
 
=={{header|C++}}==
<lang C>
10,333

edits