Write a character literal whose value is an asterisk (*).

I'm using codelabs to do some programming exercises, and I can't for the life of me seem to get this right. I would greatly appreciate any help. Thank you.

char ast = '*';
cout << ast << endl;

I think this one is what you needed?
Last edited on
Ahh, I see. Thanks a lot!
Topic archived. No new replies allowed.