473,806 Members | 2,611 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

What does near intialization mean

Hi
I am using a line of as
char recvedValues[ROWS][COLUMNS] = {'\0'};
in my code. I get a warning as near initialization for
recvedValues[0].
I am using gcc 3.4
Can anybody please explain the meaning.

Thanks
Aditya

Nov 12 '07
65 3619
On Nov 13, 8:59 am, Chris Dollin <chris.dol...@h p.comwrote:
No. The point of a newsgroup is /communication/, which is not helped
by the asking of questions for which answers are /already available/
for a modest fee.
In that case the purpose of this newsgroup is null and void , since by
definition the solution to all C issues is available elsewhere.

B2003
Nov 13 '07 #21
Boltar said:
On Nov 12, 10:29 pm, Richard Heathfield <r...@see.sig.i nvalidwrote:
>Physician, heal thyself. So far, you have had nothing whatsoever to say
about C in this thread or in any other recent thread. Indeed, a Web
search of Google's archives reveals only two articles from you that were
posted before today, both on January 5th, one of which contains an
incorrect claim about C and the other of which contains an
acknowledgemen t that the claim was incorrect.

I would suggest you learn to use Google properly, its really not
difficult. Unless you never actually bothered.

Try this:

http://groups.google.com/group/comp....a95b74f04969ee

Ho-hum - dated yesterday, yes... okay, it was outside *this* thread, fair
point... and yes, you're begging for C help, so yes, that's C-related all
right... but really, I see nothing there to change my view significantly.
Your contributions to this group remain at the microscopic level. When
you've spent a few years giving high-quality C help here, maybe I'll be
interested in your views on the dynamics of comp.lang.c - but until then,
<yawn>.

--
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
Nov 13 '07 #22
Boltar said:
On Nov 13, 8:59 am, Chris Dollin <chris.dol...@h p.comwrote:
>No. The point of a newsgroup is /communication/, which is not helped
by the asking of questions for which answers are /already available/
for a modest fee.

In that case the purpose of this newsgroup is null and void , since by
definition the solution to all C issues is available elsewhere.
Consider this: "Hi folks, I'm stuck. My program works fine on the PC, but
when I try to run it on the IBM, I'm getting strange results. I've
narrowed the problem down to one particular function - just five lines! -
but I can't see what's wrong with it. In any case, it's straight out of a
C book, so it must be right, mustn't it? Also, I've checked the FAQ, but I
couldn't find anything relevant. Here's the function... and here's a
ten-line test driver that reproduces the problem."

Here is someone who has encountered a C problem, and tackled it
intelligently. She has tried to zero in on the problem, and has managed to
identify one small function that isn't working as she expects. There is no
point in her looking in her C book, since the code comes *out* of her C
book! She has checked the FAQ. We suspect she's spent a fair amount of
time trying to puzzle this out for herself. That in itself is a good sign,
as it helps her to develop her independence. But it was all to no avail.
So she has posted her problem to Usenet, along with the smallest possible
program that reproduces her problem. And in fact the chances are good that
several people here would be able to guess fairly accurately at what's
wrong, *even without looking at the code*! And *with* the code, it'd be a
cinch. It wouldn't take more than a minute to answer.

That example was actually fictional. Let me contrast it with a real-world
example of the kind we often get here. This is for real, I assure you. It
was posted on 9 April 2006, and I've marked it off with +++++++s to act as
quote markers:

+++++++++++++++ +++++++++++++++ ++++++++
Hey Frnds can anyone help me in this

i need a program in 'c'

PROGRAM to print NxN Matrix
9 1 8 1 2 3
2 7 3 as 4 5 6
6 4 5 7 8 9

in sorted form

please send me as soon as u can very very very urgent....
plz send me

Thanks in Advance...
+++++++++++++++ +++++++++++++++ ++++++++

I don't know about you, but I'm not fooled by the "please", or even the
"plz". This person has shown no sign whatsoever of attempting to solve his
or her own problem. If he or she can't be bothered to have a go at it, why
should we?

--
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
Nov 13 '07 #23
On Nov 13, 10:41 am, Richard Heathfield <r...@see.sig.i nvalidwrote:
That example was actually fictional. Let me contrast it with a real-world
example of the kind we often get here. This is for real, I assure you. It
was posted on 9 April 2006, and I've marked it off with +++++++s to act as
quote markers:

+++++++++++++++ +++++++++++++++ ++++++++
Hey Frnds can anyone help me in this

i need a program in 'c'

PROGRAM to print NxN Matrix
9 1 8 1 2 3
2 7 3 as 4 5 6
6 4 5 7 8 9

in sorted form

please send me as soon as u can very very very urgent....
plz send me

Thanks in Advance...
+++++++++++++++ +++++++++++++++ ++++++++

I don't know about you, but I'm not fooled by the "please", or even the
"plz". This person has shown no sign whatsoever of attempting to solve his
or her own problem.
I would imagine his problem is getting a passing grade in
an assignment. Since his approach has a slight probability
of succeeding (meaning someone may write his programme for
him and we've seen it happen) I would say he has exhibited
some sign of attempting to solve his problem ;-)

Nov 13 '07 #24
On Nov 12, 11:51 am, Mark Bluemel <mark_blue...@p obox.comwrote:
Aditya wrote:
Hi
I am using a line of as
char recvedValues[ROWS][COLUMNS] = {'\0'};
in my code. I get a warning as near initialization for
recvedValues[0].
I am using gcc 3.4
Can anybody please explain the meaning.

Google for it... Or RTFM perhaps.
Perhaps he did Google for it. I did and the only match I
get is this thread. As for the manual does the GCC manual
explain the rationale for warnings ? As a matter of interest
does any compiler manual do that ?

Nov 13 '07 #25
On 12 Nov, 11:28, Aditya <adityagupta... @gmail.comwrote :
I am using a line of as
char recvedValues[ROWS][COLUMNS] = {'\0'};
in my code. I get a warning as near initialization for
recvedValues[0].
I am using gcc 3.4
Can anybody please explain the meaning.
"near initialisation" means you *almost* initialised it.
Consider "near death experience" etc.
--
Nick Keighley

Nov 13 '07 #26
Spiros Bousbouras wrote:
On Nov 12, 11:51 am, Mark Bluemel <mark_blue...@p obox.comwrote:
>Aditya wrote:
>>Hi
I am using a line of as
char recvedValues[ROWS][COLUMNS] = {'\0'};
in my code. I get a warning as near initialization for
recvedValue s[0].
I am using gcc 3.4
Can anybody please explain the meaning.
Google for it... Or RTFM perhaps.

Perhaps he did Google for it. I did and the only match I
get is this thread.
http://www.google.co.uk/search?q=%22...tialization%22

There are answers to the original question in the first page of
results.

I tend not to recommend Googling without trying it and proving
to my own satisfaction that it would be of some benefit.

It doesn't explain the real warning, but the poster didn't ask
about the real warning...
As for the manual does the GCC manual
explain the rationale for warnings ? As a matter of interest
does any compiler manual do that ?
If the original poster wants to discuss specifics about gcc,
I would suggest a different newsgroup.
Nov 13 '07 #27
Chris Dollin <ch**********@h p.comwrites:
Boltar wrote:
>On Nov 12, 11:51 am, Mark Bluemel <mark_blue...@p obox.comwrote:
>>Aditya wrote:
Hi
I am using a line of as
char recvedValues[ROWS][COLUMNS] = {'\0'};
in my code. I get a warning as near initialization for
recvedValues[0].
I am using gcc 3.4
Can anybody please explain the meaning.

Google for it... Or RTFM perhaps.

Why do people like you sit on a question and answer group only to
basically tell people to get lost when they ask a question?

Because newsgroups shouldn't be the /first/ port-of-call when
one needs a question answered?
Maybe. Maybe not. But the simple fact is that I have seen nothing
answered here which was not already in google. Google can throw up too
many alternatives and its nice to engage in a thread.

Mark Blumel has a history of telling people to RTFM : maybe he should
reconsider just why he is in this NG.
>
>The mentality of people like you could provide a psychologist with
a whole thesis.

/Anyone's/ mentality would provide material for a thousand theses.
Nov 13 '07 #28
Boltar <bo********@yah oo.co.ukwrites:
On Nov 12, 9:12 pm, Flash Gordon <s...@flash-gordon.me.ukwro te:
>Irrelevant. The important resource is the people and their time, and
that is limited.

Don't talk such rubbish. If people had work to do they wouldn't be on
here browsing the posts in the first place.
>Yes, it isn't a school so we are not being paid to teach you.

Not are you being paid to post non-replies. If you have nothing to
say , say nothing.

B2003
Welcome to CLC. There is a small but vocal group think they own the
group. This thread has, however, shocked even me. I have no idea just
who the hell this "we" is that "isn't being paid to help". It's
embarassing to read this tripe. They moan about people doing their own
research and "RTFM" (a Bluemel speciality) yet seem to have plenty of
time to come wading in, one and all, to remind someone that malloc
doesn't need a cast.... go figure.

Nov 13 '07 #29
Mark McIntyre <ma**********@s pamcop.netwrite s:
Boltar wrote:
>This isn't school, showing willing is irrelevant.

No, its real life. Being sociable is rewarded. Being petulant and lazy
is dealt with accordingly.
Can you hear yourself?
Nov 13 '07 #30

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

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.