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 6672337
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T03:29:46+00:00 2026-05-26T03:29:46+00:00

In C99 6.7.1 it says At most, one storage-class specifier may be given in

  • 0

In C99 6.7.1 it says

At most, one storage-class specifier may be given in the declaration
specifiers in a declaration

I know extern and static are both storage class specifiers but extern basically states to the compiler that the variable is declared elsewhere and worry about it later. extern and static to me are NOT mutually exclusive. It is very well possible that something could be extern and static.

Why can’t we use extern and static together? Is there a good reason other than the standard simply says, no?

  • 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-26T03:29:47+00:00Added an answer on May 26, 2026 at 3:29 am

    Well, static means Internal Linkage, extern means External Linkage.

    Internal Linkage refers to everything only in scope of a Translation unit.

    External Linkage refers to things that exist beyond a particular translation unit. In other words, accessable through the whole program.

    So both are mutually exclusive.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I read with interest the post How universally is C99 supported ?. One of
The C99 Standard says in $6.5.2. Between the previous and next sequence point an
Boost's C99 stdint implementation is awfully handy. One thing bugs me, though. They dump
The C99 standard says: The number of characters that can be produced by any
Speaking of string literals, the C99 standard says (6.4.5.6): It is unspecified whether these
C99 offers the _Exit function, which exits immediately, although it does may close file
Section 6.3.1.1 of the C99 standard contains: The following may be used in an
Are there machines (or compilers), where sizeof(char) != 1 ? Does C99 standard says
In C99 there are variable-length arrays, and there can be static qualifiers (and type
gcc 4.1.2 c99 I have the following enum's in this file ccsmd.h : enum

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.