Re: string operation??
- From: "santosh" <santosh.k83@xxxxxxxxx>
- Date: 27 Nov 2006 03:29:44 -0800
sethukr@xxxxxxxxx wrote:
hi everybody,
char str[10]="string";
str[0]^=str[1];
can anybody plz tell me the use of ^operator in string???
Please avoid abbreviations like plz instead of please, since this is an
international forum and many posters may not know it's meaning.
The bit pattern of the char value at str[1] is taken and an exclusive
OR operation is done with the bit pattern of the char value at str[0]
and the result in stored back to str[0].
The ^= is a compound assignment operator.
.
- Follow-Ups:
- Re: string operation??
- From: Simon Biber
- Re: string operation??
- From: Bob Martin
- Re: string operation??
- References:
- string operation??
- From: sethukr@xxxxxxxxx
- string operation??
- Prev by Date: empty parameterized macro
- Next by Date: Re: Please Help ----------Free Downloadable Ebooks for C & C++ Language needed
- Previous by thread: Re: string operation??
- Next by thread: Re: string operation??
- Index(es):
Relevant Pages
|
|