Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

char\u0063='\u0063'

 
weiliu lili
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I 've never seen this kind of declaration ,but it is right,could anyone give a bit explanation?
 
Jamal Hasanov
Ranch Hand
Posts: 411
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Weiliu,
\u0063 in Unicode is character 'c'. You can use Unicode inside your code. Therefore
char \u0063='\u0063';
is
char c = 'c';
Another sample,
ch\u0061r c = 'x';
is
char c = 'x';
That's all.
Jamal Hasanov
www.j-think.com
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic