Skip to content

C/C++ – Variable and method name length limit

Original C dictates that

  • The first 31 chars of an internal (i.e. not an external variable) variable name is significant.
  • The first 6 characters of an function name or external variable is significant

For C99 this is 63 and 61 chars

For C++ (GCC 1024, MS 2048)

Posted in C/C++. Tagged with , .