| Author |
How to understand char declaration
|
shetal bansal
Ranch Hand
Joined: May 09, 2005
Posts: 63
|
|
Hi, I have a doudt regarding char type variables intialization, i.e. how r the following declarations valid? e.g char c = '\061'; char c = '\61'; what does the escape character '\' signify?
|
 |
Kedar Dravid
Ranch Hand
Joined: May 28, 2004
Posts: 333
|
|
We can use the escape sequence \ddd to specify a character literal by octal value, where each digit d can be any octal digit (0-7). The number of digits nust be 3 or fewer, and the octal value must not exceed \377, that is, only the first 256 characters can be specified with this notation. e.g.: '\141', '\46'
|
 |
shetal bansal
Ranch Hand
Joined: May 09, 2005
Posts: 63
|
|
|
thanks for the reply!!
|
 |
 |
|
|
subject: How to understand char declaration
|
|
|