Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3231510
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T17:03:14+00:00 2026-05-17T17:03:14+00:00

What is the definition of Incomplete Type and Object Type in C? Also, could

  • 0

What is the definition of Incomplete Type and Object Type in C? Also, could you provide some examples of each?

ANSI C99 mentions both type categories in various places, though I’ve found it difficult to understand what each of them means exactly (there is no paragraph/sentence explicitly defining what they are).

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T17:03:15+00:00Added an answer on May 17, 2026 at 5:03 pm

    Let’s go to the online C standard (draft n1256):

    6.2.5 Types

    1 The meaning of a value stored in an object or returned by a function is determined by the
    type of the expression used to access it. (An identifier declared to be an object is the simplest such expression; the type is specified in the declaration of the identifier.) Types are partitioned into object types (types that fully describe objects), function types (types that describe functions), and incomplete types (types that describe objects but lack information needed to determine their sizes).

    Examples of incomplete types:

    struct f;    // introduces struct f tag, but no struct definition
    int a[];     // introduces a as an array but with no defined size
    

    You cannot create instances of incomplete types, but you can create pointers and typedef names from incomplete types:

    struct f *foo;
    typedef struct f Ftype;
    

    To turn the incomplete struct type into an object type, we have to define the struct:

    struct f
    {
      int x;
      char *y;
    };
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

in Line 3 Node next; the Compiler gives me an incomplete type error. I
Is declaring a static field of a type that is incomplete at the moment
I've got two header files, each requiring a type defined in the other. When
1) What is the real definition for Action delegate? some definitions describe it is
I have two classes and both of them uses some of the other class,
Definition of both tables (it's just an example, I can't merge tables, no): CREATE
Reference here That destructor will also implicitly call the destructor of the auto_ptr object.
I've found many definitions of the 'var' statement but most of them are incomplete
Definition of SUCCEEDED(): #define SUCCEEDED(hr) (((HRESULT)(hr)) >= 0) Background: When an Ok button is
Why definition of std::function<>::operator() in the C++ standard is: R operator()(ArgTypes...) const; and not

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.