Following code can't be compiled as a C program & but when compiled as C++ program it works.
I am experienced with C but quite to new to C++ & OOP, so please explain if you have some time.
int *SomeArray=NULL,n;
printf("Enter the number of elements in array : ");
scanf("%d",&n);
SomeArray = new int(n);