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

  • Home
  • SEARCH
  • 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 3681640
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T03:42:36+00:00 2026-05-19T03:42:36+00:00

What is the exact concept of the keyword auto in a C program? When

  • 0

What is the exact concept of the keyword auto in a C program?

When I went through the book Deep C secrets, I saw this quote:

The auto keyword is apparently
useless. It is only meaningful to a
compiler-writer making an entry in a
symbol table. It says this storage is
automatically allocated on entering
the block (as opposed to global static
allocation, or dynamic allocation on
the heap). Auto is irrelevant to
other programmers, since you get it by
default.

  • 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-19T03:42:36+00:00Added an answer on May 19, 2026 at 3:42 am

    auto isn’t a datatype. It’s a storage class specifier, like static. It’s basically the opposite of static when used on local variables and indicates that the variable’s lifetime is equal to its scope. When it goes out of scope it is "auto"-matically destroyed.

    Note that auto in C is currently (ie: in C17 and earlier) not like auto in modern C++ — it does not perform any type inference. However, it is possible that C23 will change auto to do a weaker form of type inference. The auto keyword is pretty useless today: you never need to specify it as the only places you’re even allowed to are exactly the places where automatic storage is already the default behavior.

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

Sidebar

Related Questions

( Almost exact duplicate of Keeping original format POST passing through AWK submitted by
This exact question has been asked before but I am at my wits end!
Exact Duplicate of: Getting the size (free,total) of a Windows Mobile phone drive using
Exact duplicate of Is there a way to determine whether an e-mail reaches its
Exact duplicate: Split a string by spaces -- preserving quoted substrings -- in Python
The exact error is as follows Could not load file or assembly 'Microsoft.SqlServer.Replication, Version=9.0.242.0,
I need to support exact phrases (enclosed in quotes) in an otherwise space-separated list
Is there an exact overview what has changed in the SP1 for .NET 3.5?
Im curious what the exact meaning of committed memory is when the value is
Closed as exact duplicate of How can I find the method that called the

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.