Hey!
Can anyone please tell me if the following code is ANSI compatible? It =
compiles fine with DevC++ but throws up an error in Borland 5.0
#include <iostream.h>
#include <stdlib.h>
int main()
{
int i=3D10;
int arr[i]; //can it do accept Integer variable
system("PAUSE");
return 0;
}
My classmates say that this is a violation of ANSI standard.
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.346 / Virus Database: 194 - Release Date: 4/10/2002
|