Well... yes, but I have a few questions. First off, #1 says a character value x, which even though x is just a generic symbol for a value of the variable, I would take as saying the char identifier should be x. You made it c. There is nothing wrong with that, but for the sake of being explicit, the identifier x might be better. That's just me, though.
For #2, I couldn't help but notice you have 3 spaces in between your parenthesis. Did you think that had anything to do with how it would output the three spaces? It's correct because it doesn't take arguments as it shouldn't, but when you don't have any arguments it's best that you just write
// ...or better yet