Goal of C's “auto” keyword

前端 未结 5 668
小蘑菇
小蘑菇 2021-01-07 20:17

What is the goal of the \"auto\" keyword in C? With C++ 0x it got new meaning but does it mean that my code will break if I port C code over to a C++ 0x compiler?

5条回答
  •  Happy的楠姐
    2021-01-07 20:58

    It is rarely used; it meant a local variable. Modern compilers such as VS2010 C++ give it a new meaning.

提交回复
热议问题