SyntaxFix
Write A Post
Hire A Developer
Questions
For the case of an array of single-byte elements, you can use memset to set all elements to the same value.
There's an example here.