This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

char\u0063='\u0063'  RSS feed

 
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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!