How do i set zero as a Integer?

G

gk245

A little off-topic question: Should i be using 'Reply-All' or 'Reply' in
these groups? I know that i shouldn't top-post, so might as well know
which reply button to use.

Thx.
 
V

Vladimir S. Oka

gk245 said:
A little off-topic question: Should i be using 'Reply-All' or 'Reply'
in
these groups? I know that i shouldn't top-post, so might as well know
which reply button to use.

Thx.

Discussing topicality and netiquette is not off-topic. It's a pleasure
seeing someone willing to follow both.

Use this as guidance:

"If you want to post a followup via groups.google.com, don't use
the broken "Reply" link at the bottom of the article. Click on
"show options" at the top of the article, then click on the
"Reply" at the bottom of the article headers." - Keith Thompson
More details at: <http://cfaj.freeshell.org/google/>

BTW, if you could only capitalise your I's your posting would be almost
perfect. Also, avoid geek- or txt-speak (e.g. thx, u, r, ...) ;-)

--
BR, Vladimir

This life is a test. It is only a test. Had this been an actual life,
you would have received further instructions as to what to do and where
to go.
 
F

Flash Gordon

Vladimir said:
Flash Gordon wrote:


That's interesting! Unfortunately, I don't have a copy of K&R1, and
(probably for that reason) have never bother reading Appendix C in
K&R2.

And what values did 8 and 9 yield according to K&R1?

I don't know, I don't have a copy of K&R1.
 
G

gk245

Discussing topicality and netiquette is not off-topic. It's a pleasure
seeing someone willing to follow both.

Use this as guidance:

"If you want to post a followup via groups.google.com, don't use
the broken "Reply" link at the bottom of the article. Click on
"show options" at the top of the article, then click on the
"Reply" at the bottom of the article headers." - Keith Thompson
More details at: <http://cfaj.freeshell.org/google/>

BTW, if you could only capitalise your I's your posting would be almost
perfect. Also, avoid geek- or txt-speak (e.g. thx, u, r, ...) ;-)

I see. I don't use google groups, but rather my ISP gives access to the
newsgroups. So, i just use a client like outlook express or opera's M2 to
post. They both have a "Reply All" or "Reply Group" button in addition to
a "Reply" button. That is where i am getting confused. Basically, i
don't want to bother or "spam" people with emails. I just want to post in
the newsgroup. Thats my main concern. So far, i have noticed that just
using "Reply" button makes a "mini-thread" under that person, while "Reply
All" just posts it as a separate post. Which one is a more preferred way
of posting?

Thx.
 
J

Jordan Abel

for example, like this:

printf("Enter Integer: \n");
scanf("%i\n", &var1);

Now, what if the user entered a few zeros before entering a Integer? I
can't use if-else, since its not allowed yet for me to use.

You could use %d instead of %i.
 
J

Jordan Abel

Flash said:
Vladimir said:
Vladimir S. Oka wrote:

gk245 wrote:

for example:

int 08453
This has no meaning in C. Did you mean:

int i = 08453;

D'oh! You caught me out here! The above is not a valid octal number.
Octal digits are [0..7] only. Everything else still holds, though...

<snip>

Actually as a historical odity, if you use K&R C then 8 *is* a valid
octal digit.

To quote from Appenx C: Summary of Changes of K&R2 (top of page 260 in
my copy), "Everyone's favourite trivial change: 8 and 9 are not octal
digits."

That's interesting! Unfortunately, I don't have a copy of K&R1, and
(probably for that reason) have never bother reading Appendix C in
K&R2.

And what values did 8 and 9 yield according to K&R1?

I would assume 8 [010] and 9 [011] times the appropriate power of eight
[010].
 
V

Vladimir S. Oka

I see. I don't use google groups, but rather my ISP gives access to the
newsgroups. So, i just use a client like outlook express or opera's M2
to post. They both have a "Reply All" or "Reply Group" button in
addition to a "Reply" button. That is where i am getting confused.
Basically, i don't want to bother or "spam" people with emails. I just
want to post in the newsgroup. Thats my main concern. So far, i have
noticed that just using "Reply" button makes a "mini-thread" under that
person, while "Reply All" just posts it as a separate post. Which one
is a more preferred way of posting?

I just posted this from Opera 8.51 (Linux), using "Reply". I believe
that's the one you want. I don't know about OE, as I don't bow to The
Beast. ;-)
 
G

gk245

I just posted this from Opera 8.51 (Linux), using "Reply". I believe that's
the one you want. I don't know about OE, as I don't bow to The Beast. ;-)

I see, thx. :D
 
F

Flash Gordon

gk245 wrote:

I see. I don't use google groups, but rather my ISP gives access to the
newsgroups. So, i just use a client like outlook express or opera's M2
to post. They both have a "Reply All" or "Reply Group" button in
addition to a "Reply" button. That is where i am getting confused.
Basically, i don't want to bother or "spam" people with emails. I just
want to post in the newsgroup. Thats my main concern. So far, i have
noticed that just using "Reply" button makes a "mini-thread" under that
person, while "Reply All" just posts it as a separate post. Which one
is a more preferred way of posting?

We appreciate you caring enough to ask how to post correctly.

Generally you should just use the ordinary "Reply" button. This, on any
half way decent client, will normally send the reply to the correct
place. I.e. it will reply normally correctly to the group(s) and if
someone has set "follow ups" it will follow the redirection. Your post
showing under and attached to the post you replied to is normal and
correct behaviour. The posts are presented like that to make it easier
to follow the "thread" or "sub-thread", i.e. the sequence of posts.

The "Reply All" button may additionally attempt to email the original
poster, and it is extremely rare that this is the correct thing to do in
a news group.

I would guess that the "Reply Group" button replies to the group even if
follow ups where directed else where, but you should check the help
system for the program to see.
 
K

Keith Thompson

gk245 said:
A little off-topic question: Should i be using 'Reply-All' or 'Reply'
in these groups? I know that i shouldn't top-post, so might as well
know which reply button to use.

That depends on what "Reply-All" and "Reply" mean, and that's
something that can be answered only by reading the documentation for
your newsreading software. (The software you're using probably has an
online help system.)

The distinction between "Reply-All" and "Reply" usually applies to
e-mail; "Reply" replies only to the sender, whereas "Reply-All"
replies to the sender and all the other recipients.

When you post a followup to a Usenet article, you almost certainly
*don't* want to send e-mail as well.

Ideally, a newsreader should clearly distinguish between a "reply"
(sent by e-mail) and a "followup" posted to the newsgroup). If yours
doesn't, you'll need to dig through the documentation to figure out
how to make it behave properly.

If you want to experiment, you can post test messages to alt.test.
(Please don't post test messages here.)
 
V

Vladimir S. Oka

Jordan said:
That's interesting! Unfortunately, I don't have a copy of K&R1, and
(probably for that reason) have never bother reading Appendix C in
K&R2.

And what values did 8 and 9 yield according to K&R1?

I would assume 8 [010] and 9 [011] times the appropriate power of
eight [010].

Yes, that seems logical. I couldn't think about any other either, but
still though I'd ask.
 
J

Jordan Abel

Jordan said:
Flash Gordon wrote:
To quote from Appenx C: Summary of Changes of K&R2 (top of page 260
in my copy), "Everyone's favourite trivial change: 8 and 9 are not
octal digits."

That's interesting! Unfortunately, I don't have a copy of K&R1, and
(probably for that reason) have never bother reading Appendix C in
K&R2.

And what values did 8 and 9 yield according to K&R1?

I would assume 8 [010] and 9 [011] times the appropriate power of
eight [010].

Yes, that seems logical. I couldn't think about any other either, but
still though I'd ask.

Could be 7 like in bc
 
G

gk245

That depends on what "Reply-All" and "Reply" mean, and that's
something that can be answered only by reading the documentation for
your newsreading software. (The software you're using probably has an
online help system.)

The distinction between "Reply-All" and "Reply" usually applies to
e-mail; "Reply" replies only to the sender, whereas "Reply-All"
replies to the sender and all the other recipients.

When you post a followup to a Usenet article, you almost certainly
*don't* want to send e-mail as well.

Ideally, a newsreader should clearly distinguish between a "reply"
(sent by e-mail) and a "followup" posted to the newsgroup). If yours
doesn't, you'll need to dig through the documentation to figure out
how to make it behave properly.

If you want to experiment, you can post test messages to alt.test.
(Please don't post test messages here.)

Cool, i didn't know there was a alt.test. Heeehee, going there now.
Thanks all for the help. :D
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,175
Messages
2,570,942
Members
47,490
Latest member
Finplus

Latest Threads

Top