M
Max
Can I ask C questions here?
Can I ask C questions here?
I'm not sure anymore, you haven't done a good start. Your firstCan I ask C questions here?
I'm not sure anymore, you haven't done a good start. Your first
question certainly was not about C.
However, topicality is always topical.
Can I ask C questions here?
I don't know. Why not give it a try and see if you're up to it?
You can try. However, you should be aware that many people will refuse
to answer your C questions if they pertain to any use of C in the real
world, and will instead be caustic and rude to you.
Harald said:Regardless of whether topicality is topical on this newsgroup, there
are places where it is not, so no, topicality is not always topical.
Not in my experience. The trouble comes when people start trying to
talk about things that are *not* about the C language, but instead
just happen to be accessed through a C program.
That's wrong. Topicality is topical in all newsgroups. It has to be. If
you couldn't discuss what was and was not topical, how would anyone
know?
Max said:If I compile this function
unsigned short div(unsigned short a, unsigned short b)
{
return a / b;
}
with warnings turned on, I am informed that
Warning test.c: 3 Assignment of int to unsigned short. Possible loss of precision
Warning test.c: 4 Assignment of int to unsigned short. Possible loss of precision
Warning test.c: 4 Assignment of int to unsigned short. Possible loss of precision
(line 3 is the line with the return statement, line 4
is the line with the closing brace)
(1) What does that mean, specifically, what is precision
in this context?
(2) How do I get rid of them? I tried all sorts of casts,
unsuccessfully. In a program with lots of such functions,
real problems can easily get lost, but I don't want to
disable warnings.
Max said:If I compile this function
unsigned short div(unsigned short a, unsigned short b)
{
return a / b;
}
with warnings turned on, I am informed that
Warning test.c: 3 Assignment of int to unsigned short. Possible loss of precision
Warning test.c: 4 Assignment of int to unsigned short. Possible loss of precision
Warning test.c: 4 Assignment of int to unsigned short. Possible loss of precision
(line 3 is the line with the return statement, line 4
is the line with the closing brace)
(1) What does that mean, specifically, what is precision
in this context?
(2) How do I get rid of them? I tried all sorts of casts,
unsuccessfully. In a program with lots of such functions,
real problems can easily get lost, but I don't want to
disable warnings.
That's wrong. Topicality is topical in all newsgroups. It has to be. If
you couldn't discuss what was and was not topical, how would anyone
know?
Regardless of whether topicality is topical on this newsgroup, there are
places where it is not, so no, topicality is not always topical. As for
this newsgroup, in my opinion, it should never be considered topical, only
tolerated when there is not a more appropriate place for discussion, and
while I'm aware I'm in the minority on this, I don't remember seeing any
reasons for treating it as topical, even unconvincing ones, other than
tradition.
That said, vippstar's response is perfectly correct. Given that Max has
asked a question which was not about C, he has not yet demonstrated he is
able to ask C questions here. We have yet to find out.![]()
However, topicality is always topical.
You are wrong. As a long standing USENET tradition, discussion of
what is topical is *always* topical.
Max should also be aware that Twink is a known troll, and should
always be completely ignored. PLONKing is even better.
You are wrong.
As a long standing USENET tradition, discussion of what
is topical is *always* topical.
Falcon Kirtaran said:-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
That only really holds true in American-style high school debate, in my
experience.
- --
- --Falcon Darkstar Kirtaran
- --
- --OpenPGP: (7902:4457) 9282:A431
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iQIcBAEBAgAGBQJIUIPwAAoJEKmxP9YxEE4rlzcP/iu9zBIj4GhUMXVsFukbiK8G
nZHUV+lL/qMcuttxdKwbHBxNkWdDCd2/hztkJjCmHnJvtXmkxgl7ILKLOjcdI34q
aup2tS+SRAmZllcyI+kFd6xjZG0Y5hzmdjCFomKzdfi35YkU9d4s+aYNivWi8qyN
4tovaB1bgE99e8oVuj1hANGOIivrFnfqIIJ3wsSMoabKZmOdFGDJsgmWMLEnhnj+
cFL/BqPcwXSblyfW5XksLzx6/5RJG8LFKoagA1YYfKX2XYslSZ47Sf8OK9IAkD0b
UzgBmfY6FFnF+FoGA9SlcDUOdVlu0Geju5PhgTbLPD9zo9FUnF9K3nRSi3ECTpxQ
VTA4TcZ/q0gVEZkIjzLtdjcJ2bVVKDGTwoMFDfRNdpHsgMJXxTDPuq1NbUzkf4P+
/rEGv7paqQ7GJQqsQPCUa7aH1/5pXgQ8SV+x6HOyyNwNrKRIb+imkdc/Zl6XQU4q
ecrfq5yyLKFP6zu6S3WjK4iJjOoB74WXF7RCOSu/m1sWZ6aZnuEcEnA9w35LL/25
tJ9E+tR1Q/kAdIhVh7L6xWNPJykzE6mkBbXZepjGplBc2B42Ug4H2XjfHTbnFOyA
CZXOTC5T3BJcCEcQ2rhTMm4MOH7dp8vKphazXK0xAtDhghBpJiu7uSr+c5U21ckq
Wy357VxCzwiJEQjeNMXC
=PEsB
-----END PGP SIGNATURE-----
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.