Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C++ > can u help me , what the output will be

Reply
Thread Tools

can u help me , what the output will be

 
 
yogesh
Guest
Posts: n/a
 
      01-23-2007
char TCGI:2c(char *what)
{
register char digit;
digit = (char) ((what[0] >= 'A' ? ((what[0] & 0xdf) - 'A')+10 :
(what[0] - '0')));
digit *= (char) 16;
digit += (char) ((what[1] >= 'A' ? ((what[1] & 0xdf) - 'A')+10 :
(what[1] - '0')));
return(digit);
}


what the operation is used for , what it will return the value ,

 
Reply With Quote
 
 
 
 
Alf P. Steinbach
Guest
Posts: n/a
 
      01-23-2007
* yogesh:
> char TCGI:2c(char *what)
> {
> register char digit;
> digit = (char) ((what[0] >= 'A' ? ((what[0] & 0xdf) - 'A')+10 :
> (what[0] - '0')));
> digit *= (char) 16;
> digit += (char) ((what[1] >= 'A' ? ((what[1] & 0xdf) - 'A')+10 :
> (what[1] - '0')));
> return(digit);
> }
>
>
> what the operation is used for , what it will return the value ,


You have posted the same article /separately/ to alt.comp.lang.learn.c-c++.

Don't.

Multi-post.

--
A: Because it messes up the order in which people normally read text.
Q: Why is it such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
 
Reply With Quote
 
 
 
 
Ian Collins
Guest
Posts: n/a
 
      01-23-2007
Alf P. Steinbach wrote:
> * yogesh:
>
>> char TCGI:2c(char *what)
>> {
>> register char digit;
>> digit = (char) ((what[0] >= 'A' ? ((what[0] & 0xdf) - 'A')+10 :
>> (what[0] - '0')));
>> digit *= (char) 16;
>> digit += (char) ((what[1] >= 'A' ? ((what[1] & 0xdf) - 'A')+10 :
>> (what[1] - '0')));
>> return(digit);
>> }
>>
>>
>> what the operation is used for , what it will return the value ,

>
>
> You have posted the same article /separately/ to alt.comp.lang.learn.c-c++.
>
> Don't.
>
> Multi-post.
>

Shouldn't that read

Don't multi-post.

Cross-post.

--
Ian Collins.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Strange problem - page output contains output from another request Paul ASP .Net 1 04-10-2007 03:41 PM
parse output screen ok but cant get desired output new file! chuck amadi Python 1 06-23-2004 02:16 PM
Sony Precision Cinema Progressive Output vs Component 480p Output Otto Pylot DVD Video 1 04-18-2004 09:49 PM
Is Fuji S3000 3.2m/pixel output, or 6 m/pixel interpolated output? Peter H Digital Photography 43 12-04-2003 02:35 PM
Output / Debug window output bug? John Bentley ASP .Net 0 09-10-2003 07:38 AM



Advertisments