473,395 Members | 1,870 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

can u help me , what the output will be

char TCGI::x2c(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 ,

Jan 23 '07 #1
2 1617
* yogesh:
char TCGI::x2c(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?
Jan 23 '07 #2
Alf P. Steinbach wrote:
* yogesh:
>char TCGI::x2c(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.
Jan 23 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

16
by: Chuck Amadi | last post by:
Sorry to bovver you again (again) here's script. I still can't see why the get_payload() doesn't produce the plain text message body of an emails in the testwwws users mailbox. As you can see I...
0
by: Dimitre Novatchev | last post by:
You seem to be unaware of the xslt processing which uses the built-in rules in the absence of templates that match some selected node. http://www.w3.org/TR/xslt#built-in-rule According to the...
2
by: Boba | last post by:
Hi, I'm programming a WinForm application. I would like to enter commands that will send output that will help me to locate bugs in the future. I know that there is a way to send output by...
1
by: Andrew | last post by:
I'm adding this as it to me a while to figure out all the pieces to be able to do this without using Microsoft.Office.Interop which caused me problems on the web-server. Streaming is the easy...
4
by: Kevin Mansel via .NET 247 | last post by:
Ok, basically this is my problem. I'm building a console app tocall a dos program. So i'm using the Shell command to call theprogram, now depending on what happens, I want to read theoutput that...
10
by: Johannes Barop | last post by:
Hi, I want to format the output of a 'std::ostream', but i dont know how to do it . Example: int main() { my_out << "Hi.\nI'am a" << " Computer."; my_out << "Nice.";
8
by: Alec MacLean | last post by:
Hi, I'm using the DAAB Ent Lib (Jan 2006) for .NET 2.0, with VS 2005 Pro. My project is a Web app project (using the WAP add in). Background: I'm creating a survey system for our company, for...
3
by: MatsL | last post by:
Hi, This is seriously driving me crazy, could anyone explain to me why neither of these doesn't produce XHTML compliant output (it is being called in Render() btw): output.WriteLine("<img...
14
by: fdu.xiaojf | last post by:
Hi, I'm writing a program which imports an external module writing in C and calls a function provided by the module to do my job. But the method produces a lot of output to the stdout, and this...
1
by: Imnew2c | last post by:
need help with logic of a pgm... pgm is to print the following output... This computer generated string contains ___letters:,____ A,_____B, ....._____Z. This is the output. The blanks are...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.