Search:

Type: Posts; User: uriel228

Search: Search took 0.00 seconds.

  1. all right guys i got it, thank you very much for...

    all right guys i got it, thank you very much for your time and a special thanks to Salem, i'll follow the RULES from now on :-)
  2. so why the next code compiling? ...

    so why the next code compiling?

    #include<iostream>
    using namespace std;
    int main()
    {
    int*ptr=new int[0];
    *ptr=976;
    cout<<*ptr<<endl;
    system("pause");
  3. i think you wrong, Sebastiani

    thanks for the answer Sebastiani, but i don't think you right because the output of the next code:

    #include<iostream>
    using namespace std;
    int main()
    {
    int*ptr=new int[0];
    cout<<ptr<<endl;...
  4. different between New type[0] and New type[1]

    hi everyone:
    what the meaning of
    int*ptr=new int[0];?
    it's compiling, and there isn't a run time error,
    so what's the different between that and new int[1] or new int?
    thanks alot
Results 1 to 4 of 4