Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

I had the definition char a[6] in one source file, and in another I declared extern char *a. Why didn it work?

0
Posted

I had the definition char a[6] in one source file, and in another I declared extern char *a. Why didn it work?

0

The declaration extern char *a simply does not match the actual definition. Use extern char a[].

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.