473,405 Members | 2,187 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,405 software developers and data experts.

Finally one site with all the C fundas

http://concentratedlemonjuice.blogsp...n-my-blog.html

I actually am searching for more work done on C now, today there are
many sites that will provide you college level understanding of
pointers, buta time comes when in a software project you will have to
go ahead and decide about using some feature of C++ that you never
used

some funda of C that you never saw ,and it adds to the cleanliness of
code and helps others improve their standards too.
I believe in this policy that when you write good code, you go one
step extra in helping others achieve better coding skill stoo
Jun 27 '08 #1
28 1577
pa********@hotmail.com said:
>
http://concentratedlemonjuice.blogsp...n-my-blog.html

Don't bother, folks - it's the usual mishmash of myth, error, and
occasional (accidental?) correctness.

--
Richard Heathfield <http://www.cpax.org.uk>
Email: -http://www. +rjh@
Google users: <http://www.cpax.org.uk/prg/writings/googly.php>
"Usenet is a strange place" - dmr 29 July 1999
Jun 27 '08 #2
pa********@hotmail.com <pa********@hotmail.comwrote:
http://concentratedlemonjuice.blogsp...n-my-blog.html
I actually am searching for more work done on C now, today there are
many sites that will provide you college level understanding of
pointers, buta time comes when in a software project you will have to
go ahead and decide about using some feature of C++ that you never
used
Sorry, but if you want to publish (rather trivial) C puzzles
you first should observe the distinction between C and C++.
Most of the so-called C-puzzles are actually C++ (I can't
judge if the answers are correct in those cases). C and C++
are different languages. Next you should correct some of
the mistakes. E.g.

2: What is wrong with this macro to find out the
square of a number

#define square(a) a*a

ANSWER:
If you pass an expression to this macro, it fails.
Eg: square(2+3) will be expanded to 2+3*2+3 = 11
whereas the actual result should be 25
Inorder to solve this problem you can write the macro as
#define square(a) ((a)*(a))

The correct answer is, of course, that this macro can't be
made safe for everyday use, even with the extra parentheses,
since e.g. 'square(i++)' will still result in an expression
invoking undefined behaviour..

Or

5. Are the statements 1 & 2 right, if we declare str as follows?

char * const str="Hello";

1. *str='W';
2. str="World";

ANSWER:
1-right
2-wrong

Neither 1 nor 2 are valid assignments. The first one isn't since
you're not allowed to change a string literal (even though you
may get away with it on some systems).

BYW, if in #4 you leave out the 'const' in front of

const char *abcd="Test";

you still wouldn't be allowed to do

*abcd='H';

for exactly the same reason.

Or

6. What is the problem with the following piece of code

typedef struct A{
int i;
};

A* RetStruct()
{
A a;
a.i=10;
return &a;
}

won't even compile since there is no type 'A' defined anywhere.
The compiler probably will complain about the ';' on line 3.

These are 3 out of 6 "puzzles" that could be C, the rest is all
C++ as far as I can see.
Regards, Jens
--
\ Jens Thoms Toerring ___ jt@toerring.de
\__________________________ http://toerring.de
Jun 27 '08 #3
Regarding the subject "Finally one site with all the C fundas", a bit
of Googling indicates that "funda" is a contraction of "fundamental",
origininating in Indian English. I've never encountered it before. I
would suggest avoiding the term if you want to be understood by
readers outside India.

jt@toerring.de (Jens Thoms Toerring) writes:
pa********@hotmail.com <pa********@hotmail.comwrote:
>http://concentratedlemonjuice.blogsp...n-my-blog.html
[...]
2: What is wrong with this macro to find out the
square of a number

#define square(a) a*a

ANSWER:
If you pass an expression to this macro, it fails.
Eg: square(2+3) will be expanded to 2+3*2+3 = 11
whereas the actual result should be 25
Inorder to solve this problem you can write the macro as
#define square(a) ((a)*(a))

The correct answer is, of course, that this macro can't be
made safe for everyday use, even with the extra parentheses,
since e.g. 'square(i++)' will still result in an expression
invoking undefined behaviour..
Also, the statement that "If you pass an expression to this macro, it
fails" is incorrect, or at least incomplete. I can pass the
expression (2+3) to the macro: square((2+3)), and it works just fine.

The answer section explains the inner parentheses around the
arguments, but not the outer parentheses around the whole definition.

The other problem with the macro is its name. By convention, macros
are usually given all-caps names, to warn the reader about the
possibility of, for example, multiple side-effects. This:

#define SQUARE(a) ((a)*(a))

would be unobjectionable. It does have the problem Jens points out,
that any side effects of the argument will occur twice, but using an
all-caps name warns a knowledgeable user to avoid calling it that way.
Or
[snip]
>
Or

6. What is the problem with the following piece of code

typedef struct A{
int i;
};

A* RetStruct()
{
A a;
a.i=10;
return &a;
}

won't even compile since there is no type 'A' defined anywhere.
The compiler probably will complain about the ';' on line 3.

These are 3 out of 6 "puzzles" that could be C, the rest is all
C++ as far as I can see.
Presumably #6 is C++.

Another problem, whichever language it's intended to be, is that it's
not indented. (And the white text on a black background on the web
site is extremely annoying, at least to me.)

--
Keith Thompson (The_Other_Keith) ks***@mib.org <http://www.ghoti.net/~kst>
Nokia
"We must do something. This is something. Therefore, we must do this."
-- Antony Jay and Jonathan Lynn, "Yes Minister"
Jun 27 '08 #4
Keith Thompson wrote:
Regarding the subject "Finally one site with all the C fundas", a bit
of Googling indicates that "funda" is a contraction of "fundamental",
origininating in Indian English. I've never encountered it before. I
would suggest avoiding the term if you want to be understood by
readers outside India.

jt@toerring.de (Jens Thoms Toerring) writes:
>pa********@hotmail.com <pa********@hotmail.comwrote:
>>http://concentratedlemonjuice.blogsp...n-my-blog.html
[...]
> 2: What is wrong with this macro to find out the
square of a number

#define square(a) a*a

ANSWER:
If you pass an expression to this macro, it fails.
Eg: square(2+3) will be expanded to 2+3*2+3 = 11
whereas the actual result should be 25
Inorder to solve this problem you can write the macro as
#define square(a) ((a)*(a))

The correct answer is, of course, that this macro can't be
made safe for everyday use, even with the extra parentheses,
since e.g. 'square(i++)' will still result in an expression
invoking undefined behaviour..

Also, the statement that "If you pass an expression to this macro, it
fails" is incorrect, or at least incomplete. I can pass the
expression (2+3) to the macro: square((2+3)), and it works just fine.
Also, square(5) works just as well.
What definition are you guys using for "expression"?
Not one of the ones from either of the C standards, I hope.

--
pete
Jun 27 '08 #5
On Jun 9, 6:13 pm, "parag_p...@hotmail.com" <parag_p...@hotmail.com>
wrote:
http://concentratedlemonjuice.blogsp...t-c-puzzles-on...

I actually am searching for more work done on C now, today there are
many sites that will provide you college level understanding of
pointers, buta time comes when in a software project you will have to
go ahead and decide about using some feature of C++ that you never
used

some funda of C that you never saw ,and it adds to the cleanliness of
code and helps others improve their standards too.
I believe in this policy that when you write good code, you go one
step extra in helping others achieve better coding skill stoo
Probably you should refer the comp.lang.c FAQ first. Its better than
any crap posted
else where in the name of c puzzles. Most of the so called C puzzles
are there with
logical and standard complying answers.
Jun 27 '08 #6
On Jun 10, 10:03*am, rahul <rahulsin...@gmail.comwrote:
On Jun 9, 6:13 pm, "parag_p...@hotmail.com" <parag_p...@hotmail.com>
wrote:
http://concentratedlemonjuice.blogsp...t-c-puzzles-on...
I actually am searching for more work done on C now, today there are
many sites that will provide you college level understanding of
pointers, buta *time comes when in a software project you will have to
go ahead and decide about using some feature of C++ that you never
used
some funda of C that you never saw ,and it adds to the cleanliness of
code and helps others improve their standards too.
I believe in this policy that when you write good code, you go one
step extra in helping others achieve better coding skill stoo

Probably you should refer the comp.lang.c FAQ first. Its better than
any crap posted
else where in the name of c puzzles. Most of the so called C puzzles
are there with
logical and standard complying answers.
wow,
I should have posted all the question in the limelight individually.,
I am sorry for using the term Funda

Sorry for putting all the uncorrected question here. See this
acatually improves the content in the long run.
Please take this a beta edition. This is not a write and forget
attempt. I will try to improve the questions and answers give time.

Actually, most people dont dive into the intricacies given the amount
of time they want to spend. Thye want answer to get it done ( with
linux 4.2 , gcc is no more what it used to be )
so it is time that we come together and give the most plausible and
accurate answer to all the questions.

I believe this attempt will take my knowledge further and also it will
increase the fundamentals of the readers in the long run.

I will not discard it, please take my intentions to be of the first
rate.
I know that you will brand it as a myth compilation but lets bring
forward the truth in one place atleast.
The FAQ too has some of them common but trust me it is a collection
over the last few years.

Hope you will help me. I will not put all the question all togetehr. I
will go over them individually, and get it checked
Jun 27 '08 #7
On Jun 10, 10:03*am, rahul <rahulsin...@gmail.comwrote:
On Jun 9, 6:13 pm, "parag_p...@hotmail.com" <parag_p...@hotmail.com>
wrote:
http://concentratedlemonjuice.blogsp...t-c-puzzles-on...
I actually am searching for more work done on C now, today there are
many sites that will provide you college level understanding of
pointers, buta *time comes when in a software project you will have to
go ahead and decide about using some feature of C++ that you never
used
some funda of C that you never saw ,and it adds to the cleanliness of
code and helps others improve their standards too.
I believe in this policy that when you write good code, you go one
step extra in helping others achieve better coding skill stoo

Probably you should refer the comp.lang.c FAQ first. Its better than
any crap posted
else where in the name of c puzzles. Most of the so called C puzzles
are there with
logical and standard complying answers.
I will try to get the correct answers here then, But when you search
online you will come across hundreds of answers , will it be better to
ask them here one by one
Jun 27 '08 #8
On Jun 10, 1:25 pm, "parag_p...@hotmail.com" <parag_p...@hotmail.com>
wrote:
On Jun 10, 10:03 am, rahul <rahulsin...@gmail.comwrote:
On Jun 9, 6:13 pm, "parag_p...@hotmail.com" <parag_p...@hotmail.com>
wrote:
>http://concentratedlemonjuice.blogsp...t-c-puzzles-on...
I actually am searching for more work done on C now, today there are
many sites that will provide you college level understanding of
pointers, buta time comes when in a software project you will have to
go ahead and decide about using some feature of C++ that you never
used
some funda of C that you never saw ,and it adds to the cleanliness of
code and helps others improve their standards too.
I believe in this policy that when you write good code, you go one
step extra in helping others achieve better coding skill stoo
Probably you should refer the comp.lang.c FAQ first. Its better than
any crap posted
else where in the name of c puzzles. Most of the so called C puzzles
are there with
logical and standard complying answers.

I will try to get the correct answers here then, But when you search
online you will come across hundreds of answers , will it be better to
ask them here one by one
Most of the questions which you will be posting here ( difference
between char a[10], char *a;
#define square(a) ( (a) * (a) ) etc ) have already been discussed
number of times. People generally
don't like going over the same stuff again. That is exactly what faqs
are for. Get a copy of c.l.c
FAQ first and post here if you don't get the answers there.
Jun 27 '08 #9
pa********@hotmail.com <pa********@hotmail.comwrote:
Actually, most people dont dive into the intricacies given the amount
of time they want to spend. Thye want answer to get it done ( with
linux 4.2 , gcc is no more what it used to be )
What's "linux 4.2"? Do you mean gcc version 4.2? And what's so
bad about it? Also note that people here don't care too much
about specific compilers. An answer isn't taken to be correct
just because a certain compiler does allow something. Instead,
it has to correct in the sense that the C standard does not
contradict the answer.
so it is time that we come together and give the most plausible and
accurate answer to all the questions.
Well, that's exactly what the FAQ was written for. And sometimes,
unfortunately, plausible is not necessary accurate...
Hope you will help me. I will not put all the question all togetehr. I
will go over them individually, and get it checked
You can get it checked here;-) Just post a question and what you
think is the correct answer and have it shredded to pieces;-)
Just don't expect that seemingly simple questions always have
short, simple answers.
Regards, Jens
--
\ Jens Thoms Toerring ___ jt@toerring.de
\__________________________ http://toerring.de
Jun 27 '08 #10
On Jun 10, 1:59*pm, j...@toerring.de (Jens Thoms Toerring) wrote:
parag_p...@hotmail.com <parag_p...@hotmail.comwrote:
Actually, most people dont dive into the intricacies given the amount
of time they want to spend. Thye want answer to get it done ( with
linux 4.2 , gcc is no more what it used to be )

What's "linux 4.2"? Do you mean gcc version 4.2? And what's so
bad about it? Also note that people here don't care too much
about specific compilers. An answer isn't taken to be correct
just because a certain compiler does allow something. Instead,
it has to correct in the sense that the C standard does not
contradict the answer.
so it is time that we come together and give the most plausible and
accurate answer to all the questions.

Well, that's exactly what the FAQ was written for. And sometimes,
unfortunately, plausible is not necessary accurate...
Hope you will help me. I will not put all the question all togetehr. I
will go over them individually, *and get it checked

You can get it checked here;-) Just post a question and what you
think is the correct answer and have it shredded to pieces;-)
Just don't expect that seemingly simple questions always have
short, simple answers.
* * * * * * * * * * * * * * * Regards, Jens
--
* \ * Jens Thoms Toerring *___ * * *j...@toerring.de
* *\__________________________ * * *http://toerring.de
Since in a recent update to QSCB we found out that since the gcc 3.3.6
was pretty lenient and we did not actively pursue compiling the tool
in AIX, we had many bugs in our code that gcc 3.3.6 allowed and we had
to do a thorough code check for all the stuff again

like

1. 3.3.6 allowing a strcuture element to be laid across word
boundaries
2. it allowed no return calls from void functios
3. non casting of the pointer from malloc was allowed.
4. it had relaxed semantics for linking too.

After this exercise, we had to purge many of the existing wrong code.
I accept the fact that yes we were sitting on a code base with
leniency in coding,
Now I really want to get across most of them

Also , I know that getting across puzzles from difference resources
and FAQ s is possible, but I have just tried to compile them in one
single place, without taking the ownership for any.

Please accept it as a museum for old questions that have been
discussed for a long time.

But , at point of time I am sure, I will have a much stronger
database. For C++ questions I am already getting feedback. I will
definitely incorporate them and I expect the same from you .

If the attempt was a flib. I will try to correct myself,.

Jun 27 '08 #11
pa********@hotmail.com <pa********@hotmail.comwrote:
Since in a recent update to QSCB we found out that since the gcc 3.3.6
was pretty lenient and we did not actively pursue compiling the tool
in AIX, we had many bugs in our code that gcc 3.3.6 allowed and we had
to do a thorough code check for all the stuff again
like
1. 3.3.6 allowing a strcuture element to be laid across word
boundaries
May be due to the machine having a different architecture where
the CPU/memory architecture doesn't allow unaligned accesses.
2. it allowed no return calls from void functios
Also gcc 3.3.6 would have spotted that if invoked with the '-W'
and '-Wall' option. I just can recommend not to use code that
doesn't compile cleanly with these flags set (except for things
that you have checked are safe) - saves a lot of time later
on as you found out the hard way;-)
3. non casting of the pointer from malloc was allowed.
Huh? Casting the return value of malloc() is never necessary
in C and casting only will hide a deeper problem, i.e. forget-
ting to include <stdlib.h>. Or are you talking about C++?
4. it had relaxed semantics for linking too.
But that's nothing related to the C (or C++) part.
Please accept it as a museum for old questions that have been
discussed for a long time.
But a few of them could use a work-over since what help is it
to others if they read (and perhaps believe) something which
is wrong?
Regards, Jens
--
\ Jens Thoms Toerring ___ jt@toerring.de
\__________________________ http://toerring.de
Jun 27 '08 #12
On Jun 10, 4:59*pm, j...@toerring.de (Jens Thoms Toerring) wrote:
parag_p...@hotmail.com <parag_p...@hotmail.comwrote:
Since in a recent update to QSCB we found out that since the gcc 3.3.6
was pretty lenient and we did not actively pursue compiling the tool
in AIX, we had many bugs in our code that gcc 3.3.6 allowed and we had
to do a thorough code check for all the stuff again
like
1. 3.3.6 allowing a strcuture element to be laid across word
boundaries

May be due to the machine having a different architecture where
the CPU/memory architecture doesn't allow unaligned accesses.
2. it allowed no return calls from void functios

Also gcc 3.3.6 would have spotted that if invoked with the '-W'
and '-Wall' option. I just can recommend not to use code that
doesn't compile cleanly with these flags set (except for things
that you have checked are safe) - saves a lot of time later
on as you found out the hard way;-)
3. non casting of the pointer from malloc was allowed.

Huh? Casting the return value of malloc() is never necessary
in C and casting only will hide a deeper problem, i.e. forget-
ting to include <stdlib.h>. Or are you talking about C++?
4. it had relaxed semantics for linking too.

But that's nothing related to the C (or C++) part.
Please accept it as a museum for old questions that have been
discussed for a long time.

But a few of them could use a work-over since what help is it
to others if they read (and perhaps believe) something which
is wrong?
* * * * * * * * * * * * * * * *Regards, Jens
--
* \ * Jens Thoms Toerring *___ * * *j...@toerring.de
* *\__________________________ * * *http://toerring.de
hi Jens
I am very happy that you did not straight away bulldozed my idea
flat.
I am willing to make the changes , I will find out the appropriate
solutions and get all of them updated in time.
i am expecitn direct comments and personal search too.
We are not purging every wrong material online , are we?
But a chance to improve will definitely make this valuable with time.
I have been a part of google groups since it took over usenet, or ( in
proper lingo ) it acquired the old mails and discussions.
So I will preserve the sanctity of the whole setup and just ask help
from you.
Jun 27 '08 #13
pa********@hotmail.com <pa********@hotmail.comwrote:
I am very happy that you did not straight away bulldozed my idea
flat.
Well, I am not yet convinced that making up another C puzzle
site is a good idea. But it's your time you spend on it, so
it's not my place to tell you otherwise.

And you also must consider that every week or so someone posts
here, telling the world that (s)he created this wonderful new
website about C, C puzzles, C tutorials etc. and in at least 95
out of 100 case a quick look shows that a lot of things written
there are plain wrong - which could easily have been avoided by
the author at least reading the C FAQ. So you can't realistically
expect too warm a welcome when you come along here with another
website;-)
I am willing to make the changes , I will find out the appropriate
solutions and get all of them updated in time.
i am expecitn direct comments and personal search too.
We are not purging every wrong material online , are we?
I can't remove anything I didn't put up. I just thought, since
it was your stated intent to help others with your site, that
it would be probably most helpful not to present wrong answers
to start with.
But a chance to improve will definitely make this valuable with time.
I have been a part of google groups since it took over usenet, or ( in
proper lingo ) it acquired the old mails and discussions.
Google didn't "take over usenet" - they just bought the archives
DejaNews had collected over the years. But if Goggle would vanish
today the usenet would continue to exist - I haven't used Google
for sending a single message to a newsgroup, Google groups is
just one of many way you can get access to usenet.
So I will preserve the sanctity of the whole setup and just ask help
from you.
What "sancticity"? And if you just ask me then you do yourself
a disservice. I have been wrong quite a number of times and I
guess that won't change completely, just hopefully will happen
less often the more I learn. By posting here in clc you will
find a lot of keen eyes and if someone makes a mistake it will
be spotted more or less immediately and pointed out. There are
often also different angles from you can look at a problem, so
getting a second (and third and...) opinion often is rather
helpful. If you look back in thus thread I critisized some-
thing about an answer concerning a macro and the Keith came
along and added a number of good points I didn't come up with.

Regards, Jens
--
\ Jens Thoms Toerring ___ jt@toerring.de
\__________________________ http://toerring.de
Jun 27 '08 #14
On Jun 10, 8:16*pm, j...@toerring.de (Jens Thoms Toerring) wrote:
parag_p...@hotmail.com <parag_p...@hotmail.comwrote:
I am very happy that you did not straight away *bulldozed my idea
flat.

Well, I am not yet convinced that making up another C puzzle
site is a good idea. But it's your time you spend on it, so
it's not my place to tell you otherwise.

And you also must consider that every week or so someone posts
here, telling the world that (s)he created this wonderful new
website about C, C puzzles, C tutorials etc. and in at least 95
out of 100 case a quick look shows that a lot of things written
there are plain wrong - which could easily have been avoided by
the author at least reading the C FAQ. So you can't realistically
expect too warm a welcome when you come along here with another
website;-)
I am willing to make the changes , I will find out the appropriate
solutions and get all of them updated in time.
i am expecitn direct comments and personal search too.
We are not purging every wrong material online , are we?

I can't remove anything I didn't put up. I just thought, since
it was your stated intent to help others with your site, that
it would be probably most helpful not to present wrong answers
to start with.
But a chance to improve will definitely make this valuable with time.
I have been a part of google groups since it took over usenet, or ( in
proper lingo ) it acquired the old mails and discussions.

Google didn't "take over usenet" - they just bought the archives
DejaNews had collected over the years. But if Goggle would vanish
today the usenet would continue to exist - I haven't used Google
for sending a single message to a newsgroup, Google groups is
just one of many way you can get access to usenet.
So I will preserve the sanctity of the whole setup and just ask help
from you.

What "sancticity"? And if you just ask me then you do yourself
a disservice. I have been wrong quite a number of times and I
guess that won't change completely, just hopefully will happen
less often the more I learn. By posting here in clc you will
find a lot of keen eyes and if someone makes a mistake it will
be spotted more or less immediately and pointed out. There are
often also different angles from you can look at a problem, so
getting a second (and third and...) opinion often is rather
helpful. If you look back in thus thread I critisized some-
thing about an answer concerning a macro and the Keith came
along and added a number of good points I didn't come up with.

* * * * * * * * * * * * * * * Regards, Jens
--
* \ * Jens Thoms Toerring *___ * * *j...@toerring.de
* *\__________________________ * * *http://toerring.de
and that is all the game
may be a discussion for one problem started in the past and it
reached the FAQ but not all reach to a all consenting point. There is
nothing like a consent from all. There is a language ans there is a
reference manual.
If things are vague and ambiguous then we need help otherwise it is
just plain english

Well, to get something done is the major challenge, which I once
forgot and took learning the language as a challenge and hence my
adventures with collection of questions that actually are just vistas
to understand the language better and at times the compiler you are
working on
Jun 27 '08 #15
rahul wrote, On 10/06/08 09:37:
On Jun 10, 1:25 pm, "parag_p...@hotmail.com" <parag_p...@hotmail.com>
<snip>
>I will try to get the correct answers here then, But when you search
online you will come across hundreds of answers , will it be better to
ask them here one by one
<snip>
are for. Get a copy of c.l.c
FAQ first and post here if you don't get the answers there.
The clc FAQ resides at http://c-faq.com/
--
Flash Gordon
Jun 27 '08 #16
"pa********@hotmail.com" wrote:
>
.... snip ...
>
I have been a part of google groups since it took over usenet, or
( in proper lingo ) it acquired the old mails and discussions.
FYI google never acquired anything about Usenet - they just
developed a faulty newsreader, accessible via HTML and the www
protocol. Usenet continues to operate quite happily and
independant of google.

BTW, the way to check code with gcc is to use the appropriate flags
at runtime. I suggest:

gcc -W -Wall -ansi -pedantic -Wwrite-strings -Wfloat-equal
-gstabs+ -ftrapv -O1

--
[mail]: Chuck F (cbfalconer at maineline dot net)
[page]: <http://cbfalconer.home.att.net>
Try the download section.
** Posted from http://www.teranews.com **
Jun 27 '08 #17
CBFalconer wrote:
"pa********@hotmail.com" wrote:
... snip ...
>I have been a part of google groups since it took over usenet, or
( in proper lingo ) it acquired the old mails and discussions.

FYI google never acquired anything about Usenet - they just
developed a faulty newsreader, accessible via HTML and the www
protocol. Usenet continues to operate quite happily and
independant of google.
There was the DejaNews archive of Usenet begun in 1995 with Usenet stuff
back to 1981. Look it up on Wikipedia. Google bought the Usenet archive
from Deja in 2001 to form Google Groups.

--
Joe Wright
"Everything should be made as simple as possible, but not simpler."
--- Albert Einstein ---
Jun 27 '08 #18
On Jun 10, 10:27 pm, "parag_p...@hotmail.com" <parag_p...@hotmail.com>
wrote:
<snip>
Refrain from replying to author. Others are losing context.
Jun 27 '08 #19
On Jun 11, 9:04*am, rahul <rahulsin...@gmail.comwrote:
On Jun 10, 10:27 pm, "parag_p...@hotmail.com" <parag_p...@hotmail.com>
wrote:
<snip>
Refrain from replying to author. Others are losing context.
@Rahul
There was nothing of a pan board appeal to what I sent to you!



Jun 27 '08 #20
Joe Wright wrote:
CBFalconer wrote:
>"pa********@hotmail.com" wrote:
... snip ...
>>I have been a part of google groups since it took over usenet, or
( in proper lingo ) it acquired the old mails and discussions.

FYI google never acquired anything about Usenet - they just
developed a faulty newsreader, accessible via HTML and the www
protocol. Usenet continues to operate quite happily and
independant of google.

There was the DejaNews archive of Usenet begun in 1995 with Usenet
stuff back to 1981. Look it up on Wikipedia. Google bought the
Usenet archive from Deja in 2001 to form Google Groups.
That was just an archive, and was fine. Then they developed the
(faulty) newsreader and filled Usenet with ignorant newbies with no
knowledge of the proper protocols. DejaNews also had a newsreader,
but I don't recall the google type problems with it.

--
[mail]: Chuck F (cbfalconer at maineline dot net)
[page]: <http://cbfalconer.home.att.net>
Try the download section.

** Posted from http://www.teranews.com **
Jun 27 '08 #21
On 10 Jun, 12:39, "parag_p...@hotmail.com" <parag_p...@hotmail.com>
wrote:
Since in a recent update to QSCB we found out that since the gcc 3.3.6
was pretty lenient and we did not actively pursue compiling the tool
in AIX, we had many bugs in our code that gcc 3.3.6 allowed and we had
to do a thorough code check for all the stuff again

like

1. 3.3.6 allowing a strcuture element to be laid across word
boundaries
I don't understand what this means. Why do you care.

struct s
{
char c;
int d;
};

on some compilers d will cross a word boundary. On others
padding will be inserted so it doesn't. Why do you care?

2. it allowed no return calls from void functios
since return is not a function it cannot be called.
A return statement is valid in a void function.

void legal()
{
return;
}

void illegal()
{
return 1;
}

If a compiler rejects legal() or accepts illegal()
it is broken.

3. non casting of the pointer from malloc was allowed.
this is correct behaviour for a C compiler
4. it had relaxed semantics for linking too.
what?
<snip>
--
Nick Keighley
Jun 27 '08 #22
CBFalconer wrote:
Joe Wright wrote:
>CBFalconer wrote:
>>"pa********@hotmail.com" wrote:
... snip ...
I have been a part of google groups since it took over usenet, or
( in proper lingo ) it acquired the old mails and discussions.

FYI google never acquired anything about Usenet - they just
developed a faulty newsreader, accessible via HTML and the www
protocol. Usenet continues to operate quite happily and
independant of google.

There was the DejaNews archive of Usenet begun in 1995 with Usenet
stuff back to 1981. Look it up on Wikipedia. Google bought the
Usenet archive from Deja in 2001 to form Google Groups.

That was just an archive, and was fine. Then they developed the
(faulty) newsreader and filled Usenet with ignorant newbies with no
knowledge of the proper protocols. DejaNews also had a newsreader,
but I don't recall the google type problems with it.
Google Groups' web interface has been perfectly fine for a long time. If
the majority of their users are "ignorant newbies", that's hardly their
fault. For that matter, at any one time, the majority of the Web's
users would probably be "ignorant newbies" according to some
definitions.

What _is_ a genuine fault with Google Groups is their lackadaisical
attitude towards users who abuse their services to send spam, and to
those who file complaints about the same. This in itself is a
sufficient reason to not use Google Groups to access Usenet. Note that
some traditional news servers also allow this sort of thing. Some are
even notorious for it.

Jun 27 '08 #23
CBFalconer <cb********@yahoo.comwrites:
Joe Wright wrote:
>CBFalconer wrote:
>>"pa********@hotmail.com" wrote:
... snip ...
I have been a part of google groups since it took over usenet, or
( in proper lingo ) it acquired the old mails and discussions.

FYI google never acquired anything about Usenet - they just
developed a faulty newsreader, accessible via HTML and the www
protocol. Usenet continues to operate quite happily and
independant of google.

There was the DejaNews archive of Usenet begun in 1995 with Usenet
stuff back to 1981. Look it up on Wikipedia. Google bought the
Usenet archive from Deja in 2001 to form Google Groups.

That was just an archive, and was fine. Then they developed the
(faulty) newsreader and filled Usenet with ignorant newbies with no
knowledge of the proper protocols.
You think newbies need to know the protocol? This is rich coming from
you who spent ages posting with a double signature you pompous arse.
Jun 27 '08 #24
On Jun 9, 9:13*am, "parag_p...@hotmail.com" <parag_p...@hotmail.com>
wrote:
http://concentratedlemonjuice.blogsp...t-c-puzzles-on...

I actually am searching for more work done on C now, today there are
many sites that will provide you college level understanding of
pointers, buta time comes when in a software project you will have to
go ahead and decide about using some feature of C++ that you never
used

I thought I understood pointers pretty darn well in high school, but
you sir have proven me wrong! </snark>
Jun 27 '08 #25
"pa********@hotmail.com" wrote:
>
I actually am searching for more work done on C now, today there
are many sites that will provide you college level understanding
of pointers, buta time comes when in a software project you will
have to go ahead and decide about using some feature of C++ that
you never used
C++ is a different language, and has its own newsgroups. Attempts
to discuss it here are all off topic, and pointless.

--
[mail]: Chuck F (cbfalconer at maineline dot net)
[page]: <http://cbfalconer.home.att.net>
Try the download section.
** Posted from http://www.teranews.com **
Jun 27 '08 #26
santosh wrote:

Google Groups' web interface has been perfectly fine for a long time.

Hardly. Two things wrong are that it doesn't auto-trim .sigs, so its
users habitually leave those in, and it doesn't allow proper .sig
separators (it eats the trailing space) so that any user that tries a
..sig will have an incorrect one.

The two qualities they seemed to have required for the news interface
team were to be an incompetent programmer and be completely unfamiliar
with usenet.


Brian
Jun 27 '08 #27
Default User wrote:
santosh wrote:

>Google Groups' web interface has been perfectly fine for a long time.


Hardly. Two things wrong are that it doesn't auto-trim .sigs, so its
users habitually leave those in,
How long would it take to trim a signature, particularly when a typical
response involves quite a bit of snipping anyway?
and it doesn't allow proper .sig
separators (it eats the trailing space) so that any user that tries a
.sig will have an incorrect one.
Okay. This is a serious disadvantage, at least to those who use sigs.
The two qualities they seemed to have required for the news interface
team were to be an incompetent programmer and be completely unfamiliar
with usenet.
Jun 27 '08 #28
santosh wrote:
Default User wrote:
santosh wrote:

Google Groups' web interface has been perfectly fine for a long
time.


Hardly. Two things wrong are that it doesn't auto-trim .sigs, so its
users habitually leave those in,

How long would it take to trim a signature, particularly when a
typical response involves quite a bit of snipping anyway?
Regardless, a decent newsreader does it automatically. It's the case
that many GG users don't trim at all, so getting rid of the .sigs would
be some help.
and it doesn't allow proper .sig
separators (it eats the trailing space) so that any user that tries
a .sig will have an incorrect one.

Okay. This is a serious disadvantage, at least to those who use sigs.
Just part of the overall incompetency of the designers. It took forever
to get automatic quoting going.

Brian
Jun 27 '08 #29

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

Similar topics

10
by: Thomas Heller | last post by:
**py2exe 0.5.0** (finally) released =================================== py2exe is a Python distutils extension which converts python scripts into executable windows programs, able to run without...
8
by: Z D | last post by:
Hi, I was wondering what's the point of "finally" is in a try..catch..finally block? Isn't it the same to put the code that would be in the "finally" section right after the try/catch block?...
16
by: Chris | last post by:
Hi, I am using the try catch finally block in many places in my code. When a create an sqldatareader dr and try to close it in my finally block I get the error: use of unsigned local variable....
6
by: Alfredo | last post by:
Hi, I have question, i debug this code: try 'Some operations catch Response.Redirect("Page 1") finally Response.Redirect("Page 2")
3
by: MartyNg | last post by:
I have been looking online for pointers, and read mixed things. I was hoping if I post direct questions here, I could get some solid answers. I work for a small company with less than 10 web...
13
by: Alan Silver | last post by:
Hello, I finally got around to buying a 2nd hand Mac, so I can test pages in the Mac-only browsers. It has IE5.2, although that hangs up every time I try to start it up, so I guess I won't be...
3
by: Eran.Yasso | last post by:
Hi, I wondering where should i use finally and where should i use catch? I have a thread, which the thread dispatcher waits for the thread. if i abort the thread, an exception happens. why...
3
by: Jeff | last post by:
..NET 2.0 Lets say I have this code: public int test () { string s = "hello world" try { int i = 4;
15
by: tshad | last post by:
Do I still need to close an object in a finally statement after a catch if it is part of a using statement? For example: FileStream fs = null; try { using (FileInfo fInfo = new...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.