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

((khalid mughal's)) Ques. on char Confusing?

 
Ajay Singhal
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!
please clefy the ans?
Select all the valid statements?
1) char a='\u0061';
2)char \u0061='a';
3)ch\u0061r a='a';
Ans: All are correct?
------------------
 
Vegad Arvind
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Yes all the correct
1) char a='\u0061';
here \u0061= a > char a = 'a' valid

2) char \u0061='a';
here \u0061 = a > char a = 'a' valid
\u0061 is an identifier
3) ch\u0061r a='a';
char a = 'a' valid

Best Regards !
Arvind Vegad
 
Michael Burke
Ranch Hand
Posts: 103
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What does the r stand for in the last example?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic