开发者

How to print custom characters

开发者 https://www.devze.com 2023-04-05 03:21 出处:网络
I want to开发者_如何转开发 know how I can include special characters in C Strings, i.e.: char a[] = \"Hello \\120\"; // This is just an example

I want to开发者_如何转开发 know how I can include special characters in C Strings, i.e.:

char a[] = "Hello \120"; // This is just an example

Then a should contain "Hello <120th character>".

How can I do this in C?


In hex: char a[] = "Hello \x78";

0

精彩评论

暂无评论...
验证码 换一张
取 消