P
parag_paul
File1.c
int arr[80];
File2.c
extern int *arr;
int main()
{
arr[1] = 100;
return 0;
}
int arr[80];
File2.c
extern int *arr;
int main()
{
arr[1] = 100;
return 0;
}
File1.c
int arr[80];
File2.c
extern int *arr;
int main()
{
arr[1] = 100;
return 0;
}
Philip Potter said:File1.c
int arr[80];
File2.c
extern int *arr;
int main()
{
arr[1] = 100;
return 0;
}
Did you read the FAQ? You have just asked question 6.1, and if you go
to http://c-faq.com/ you will get your answer.
Philip
Philip Potter said:[email protected] said:File1.c
int arr[80];
File2.c
extern int *arr;
int main()
{
arr[1] = 100;
return 0;
}Did you read the FAQ? You have just asked question 6.1, and if you go
tohttp://c-faq.com/you will get your answer.Philip
Will you be replying to every question here with a pointer to the FAQ?
If so possibly you would like to just automate your replies?
Hint : not every programmer that comes here can memorise the entire FAQ
nor can they always find the necessary section of the FAQ.
Ed Prochak said:Philip Potter said:(e-mail address removed) wrote:
File1.cDid you read the FAQ? You have just asked question 6.1, and if you go
tohttp://c-faq.com/you will get your answer.Philip
Will you be replying to every question here with a pointer to the FAQ?
Why shouldn't he, if the question really is a FAQ?
Are you offering to do it? While the scope of the problem is more
limited, the problem of interpreting human language automatically
appears to be intractable.
The FAQ is a nice reference. No one is expected to memorize it but it
would do good to read it once in a while. (I think I am due for a
refresher.)
Ed
Richard said:Will you be replying to every question here with a pointer to the FAQ?
If so possibly you would like to just automate your replies?
Hint : not every programmer that comes here can memorise the entire FAQ
nor can they always find the necessary section of the FAQ.
parag_paul said:File1.c
int arr[80];
File2.c
extern int *arr;
int main()
{
arr[1] = 100;
return 0;
}
Richard wrote:
) But a naive solution would be simply auto reply to each new post
)
) "have you read the FAQ : here ..."
He pointed to a *specific item* in the FAQ.
) In your haste you seem to have misunderstood. My point is that 99.99% of
) questions here are answered in one way or other by the FAQ,
)
) Simply questioning people as to whether they read it and then somewhat
) pompously pointing them there makes the group pretty much redundant.
He pointed to the *specific part* of the FAQ that answered the question.
File1.c
int arr[80];
File2.c
extern int *arr;
int main()
{
arr[1] = 100;
return 0;
}
Bartc said:File1.c
int arr[80];
File2.c
extern int *arr;
int main()
{
arr[1] = 100;
return 0;
}
The declarations for the arr variable don't match.
Try extern int arr[80] in File2.c.
(I know arrays and pointers are /supposed/ to be interchangeable. But there
is a subtle difference between: int a[80] and int *a)
Yes. We all understand that.
Yes. We all understand that.
And, yes, all also understand that that is the part that would be a
little tricky about implementing the auto-responder. Save that for
Version 2.0.
In the meantime, an auto-responder that simply greets every new thread
(by a newbie - the program would keep a list of people to exclude from
treatment) with "The answer is in the FAQ. Please see the FAQ at: <URL>"
would be very nice and save certain people (e.g., Bwian) from having to
do it manually.
Willem said:Ed wrote:
) On Mar 31, 11:22 am, (e-mail address removed) (Kenny McCormack)
) wrote:
)> Yes. We all understand that.
)
) It was not clear from your posts that you understood that.
You're confusing Kenny-the-Troll, who is nothing but a troll,
with Just-Richard, who's an okay chap although he often has
opinions I don't share.
SaSW, Willem
Richard said:Actually I think Kenny is an ok chap too. He and his type (and I am
similar) are required to stop certain elements getting too carried away
with their own self importance.
Richard said:Actually I think Kenny is an ok chap too. He and his type (and I am
similar) are required to stop certain elements getting too carried away
with their own self importance.
Morris Dovey said:Umm. How would you rate the self-importance of a person who
claims sufficient moral superiority stand in judgement of any
group of strangers?
Richard said:I have no idea which self righteous crusade you are now, but like many
others I can only call it as I see it. And there is a rather gaping
divide between been an arrogant arse and putting people down all the
time and saying "Hey you, who the hell do you think you are? Calm down
and give someone else a chance here". If you can't see the fundamental
difference between the two approaches then there isn't much point
trying to explain it to you I am afraid. A bit like trying to get
through to certain elements here that just because they had once or
twice found a bug from a printout on 500,000 lines of code that that
does not invalidate good practice in using a debugger responsibly and
skillfully in order to save time and money.
Umm. How would you rate the self-importance of a person who
claims sufficient moral superiority stand in judgement of any
group of strangers?
Richard said:If the trolls ever get around to learning how to explain C to other people
instead of filling the group with their bile, maybe they will become
*genuinely* important. If it ever occurs and you happen to notice, do let
me know.
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.