• The type of the array element that appears when compiling C is not completely wrong

Source: Internet
Author: User
This article from http://www.blog.edu.cn/user2/33357/archives/2006/1240145.shtml

· the type of the array element that appears when compiling C is not completely error-| Kevinfang published on 2006-4-17 16:20:00
The file code is as follows:
......
extern struct _fstruct ps_fontinfo[];
......
struct _fstruct {
Char *name; /* Postscript Font name */
int xfontnum; /* template for locating X fonts */
};
......
The type of the array element that appears when compiling with GCC4 is not completely wrong, because GCC4 does not allow the type to be used before the declaration.
Therefore, the order of exchange can be passed smoothly.
......
struct _fstruct {
Char *name; /* Postscript Font name */
int xfontnum; /* template for locating X fonts */
};
......
extern struct _fstruct ps_fontinfo[];
......

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.