typedef a fixed length array

Let’s suppose you wanna create a typedef for a fixed length array, so first thing that you would do is this… [sourcecode language=’cpp’]typedef char[100] HundredChars;[/sourcecode] This will not work as typedefing an array requires different syntax, here is how we do it… [sourcecode language=’cpp’]typedef char HundredChars[100];[/sourcecode]
Continue reading…