Your post if very hard to read because certain characters are interpreted as formatting tokens.
In this post @hs2 explains how to insert source code in a post.
Another method uses 3 tildes and the letter ‘c
’ to insert C source code:
~~~c
/* This it source code. */
void my_function( int i )
{
}
~~~
The tildes won’t be visible in the post.
Or use backquotes (``) to write my_function()