Search Results

Search: Posts Made By: kris26
Forum: Programming 12-06-2012
15,903
Posted By Corona688
Look for 48 in the 'dec' column, you'll find the...
Look for 48 in the 'dec' column, you'll find the character 0 there. The nonprinting characters are in a separate section above the printing section, in it you'll find many characters which aren't...
Forum: Programming 12-05-2012
15,903
Posted By Corona688
The binary value for an ASCII '0' looks like...
The binary value for an ASCII '0' looks like 01100000.

The binary value for a numeric 48 looks like 01100000.

You might notice a certain resemblance between the two... They're all just...
Forum: Programming 12-05-2012
15,903
Posted By Corona688
It would be non-printable control characters if...
It would be non-printable control characters if you dumped it into the terminal raw. That's why you use printf("%d", num) to print it and don't dump it into the terminal raw.

But, they're all...
Forum: Programming 12-05-2012
15,903
Posted By Don Cragun
The C Standard requires: The reference to the...
The C Standard requires:
The reference to the above list is the list of the ten decimal digits starting with 0 and followed in order the by the digits 1 through 9. In a C source program an integer...
Forum: Programming 12-04-2012
15,903
Posted By Don Cragun
In addition to what Corona688 has already said, I...
In addition to what Corona688 has already said, I need to comment on other aspects of your program. Any results that you get from this code are unreliable and suspect. First let me add line numbers...
Forum: Programming 12-04-2012
15,903
Posted By Corona688
The first 16 characters of ASCII, including zero,...
The first 16 characters of ASCII, including zero, are nonprinting control characters. The ASCII letter '0' is not the binary number 0. Try this:

printf("%d\n", 0);
printf("%d\n", '0');

It's...
Showing results 1 to 6 of 6

 
All times are GMT -4. The time now is 06:59 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy