哪里是用C auto关键字? [英] Where is the C auto keyword used?

查看:104
本文介绍了哪里是用C auto关键字?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的大学时代我读了汽车关键字,并在时间过程中,我居然忘了是什么了。它被定义为:

In my college days I read about the auto keyword and in the course of time I actually forgot what it is. It is defined as:

一个局部变量定义为具有
  当地寿命

defines a local variable as having a local lifetime

我从来没有发现它正在使用的任何地方,是不是真的使用,这样的话它在哪儿使用,在什么情况下?

I never found it is being used anywhere, is it really used and if so then where is it used and in which cases?

推荐答案

汽车修改器静态。它定义了存储类变量。但是,由于局部变量默认为汽车,你通常不需要手动指定它。

auto is a modifier like static. It defines the storage class of a variable. However, since the default for local variables is auto, you don't normally need to manually specify it.

<一个href=\"http://web.archive.org/web/20130927234242/http://itee.uq.edu.au/~comp2303/Leslie_C_ref/C/CONCEPT/storage_class.html\">This 页面列出了用C不同的存储类。

This page lists different storage classes in C.

这篇关于哪里是用C auto关键字?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆