|
|
Up |
|
|
  |
Author: sandysandy
Date: Apr 19, 2008 22:33
I have one doubt........how to print a msg from
right to left in turbo C compiler
|
| |
|
| |
2 Comments |
|
  |
Author: tradeinputian.005tradeinputian.005
Date: Apr 19, 2008 21:23
Dear my friend
It is our pleasure to meet you here.
we are Sunrise East Asia Sporting Goods Co.,Ltd in Fujian of China.
our website: http://www.trade-in-putian.cn
We are professional and honest wholesaler of all kinds of brand
sneaks and apparel.the products
our company supply are as follows:
SPORT SHOES
1).Nike Jordan Jordan 1 jordan 1.5 jordan 2 jordan 3 jordan 4.5
jordan 4 ordan 5 jordan Children's shoes jordan 6 jordan 6.5 jordan 7
jordan 8 jordan 9 jordan 9.5 jordan 10 jordan 11 jordan 12 jordan 13
jordan 13.5 jordan 14 jordan 15 jordan 16 jordan 17 jordan 18 jordan
19.5 jordan 19 jordan 20 jordan 21 jordan 21.5 jordan 22 jordan DMP
jordan RETRO jordan 7.5 jordan 23
|
| Show full article (5.59Kb) |
|
| |
no comments
|
|
  |
Author: GioGio
Date: Apr 19, 2008 18:01
Well, I'd like to thank you all for your answers. Not sure that I
understand them, but I shall study them. :)
- Gio
|
| |
|
1 Comment |
|
  |
Author: CBFalconerCBFalconer
Date: Apr 19, 2008 16:26
Gio wrote:
>
> [code]
> short i, j;
>
> i = -32768;
> j = -i;
>
> printf("%%d", j);
> [/code]
>
> As some of you may have guessed by my previous post (about books),
> I'm trying to learn C. Well, a friend of mine (who is a programmer)
> asked me (who is not a programmer) what the output of this would
> be, and why. I had no clue, so I ran it, and it printed -32768. I
> gave him my best guess (which was wrong):
|
| Show full article (1.05Kb) |
|
3 Comments |
|
  |
Author: Joe WrightJoe Wright
Date: Apr 19, 2008 16:00
Gio wrote:
> [code]
>
> short i, j;
>
> i = -32768;
> j = -i;
>
> printf("%%d", j);
>
> [/code]
>
> As some of you may have guessed by my previous post (about books), I'm
> trying to learn C. Well, a friend of mine (who is a programmer) asked me
> (who is not a programmer) what the output of this would be, and why. I
> had no clue, so I ran it, and it printed -32768. I gave him my best
> guess (which was wrong):
>
>> 1) a short maxes out at 32768, so it has no more room to hold the sign
>> info. That's it for i, anyway. When you define j as -i, it's saying ...
|
| Show full article (1.44Kb) |
|
no comments
|
|
  |
Author: GioGio
Date: Apr 19, 2008 15:36
I'm reading the K&R book and doing the exercises. Currently, I'm working
on Exercise 1-3.
Here's what I have:
[code]
#include
main()
{
float fahr, celsius;
float lower, upper, step;
lower = 0; /* lower limit of temperatuire scale */
upper = 300; /* upper limit */
step = 20; /* step size */
fahr = lower;
|
| Show full article (0.91Kb) |
|
42 Comments |
|
  |
Author: Richard HeathfieldRichard Heathfield
Date: Apr 19, 2008 15:22
Gio said:
> [code]
>
> short i, j;
>
> i = -32768;
> j = -i;
>
> printf("%%d", j);
>
> [/code]
>
> As some of you may have guessed by my previous post (about books), I'm
> trying to learn C. Well, a friend of mine (who is a programmer) asked me
> (who is not a programmer) what the output of this would be, and why.
|
| Show full article (2.38Kb) |
|
5 Comments |
|
  |
Author: Ioannis VranosIoannis Vranos
Date: Apr 19, 2008 15:16
Gio wrote:
> [code]
>
> short i, j;
>
> i = -32768;
> j = -i;
>
> printf("%%d", j);
>
> [/code]
>
> As some of you may have guessed by my previous post (about books), I'm
> trying to learn C. Well, a friend of mine (who is a programmer) asked me
> (who is not a programmer) what the output of this would be, and why. I
> had no clue, so I ran it, and it printed -32768. I gave him my best
> guess (which was wrong):
>
>> 1) a short maxes out at 32768, so it has no more room to hold the sign
>> info. That's it for i, anyway. When you define j as -i, it's saying ...
|
| Show full article (1.22Kb) |
|
8 Comments |
|
  |
Author: GioGio
Date: Apr 19, 2008 15:03
[code]
short i, j;
i = -32768;
j = -i;
printf("%%d", j);
[/code]
As some of you may have guessed by my previous post (about books), I'm
trying to learn C. Well, a friend of mine (who is a programmer) asked me
(who is not a programmer) what the output of this would be, and why. I
had no clue, so I ran it, and it printed -32768. I gave him my best
guess (which was wrong):
> 1) a short maxes out at 32768, so it has no more room to hold the
> sign info. That's it for i, anyway. When you define j as -i, it's
> saying "here's some sign info, then look at i", not actually doing
> the math as -1 * i.
My second guess was:
> 2) There are little gremlins in my compiler changing signs of my
> numbers around. Darn gremlins!
Okay, so that one was wrong too. :(
|
| Show full article (0.93Kb) |
|
no comments
|
|
  |
|
|
  |
Author: aarklonaarklon
Date: Apr 19, 2008 14:28
Hi,
the following is actually a part of the pattern matching program which
i tried ,memset is not setting the entire integer array with
-1
#include
#include
#include
int main(void)
{
int maxpat[80];
memset(maxpat,-1,80);
for(i=0;i<80;i++)
printf("%%d\t",maxpat[i]);
return EXIT_SUCCESS;
}
but i am getting o/p as
|
| Show full article (1.14Kb) |
|
46 Comments |
|
|
|
|
|
|