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

Lists in Python -

android - can not access to progress bar in an other activity -

html - Not able to access next element of an array javascript -