c++ - 'default' as a variable name -


while debugging code, came across array named default. thought keywords not allowed variable names.

#include "stdafx.h" #include <stdio.h>  int main() {  int default = 5;  printf("%d\n", default);  return 0; } 

now above code compiles without hitch on vs 2008. isn't 'default' keyword? how come works variable name? side-effects?

ps: infragistics::win::ultrawintoolbars::toolbarscollection has property name!

it's known issue in vc++. by-design c++/cli compatibility.


Comments

Popular posts from this blog

magento2 - Magento 2 admin grid add filter to collection -

Android volley - avoid multiple requests of the same kind to the server? -

Combining PHP Registration and Login into one class with multiple functions in one PHP file -