naive operator new question

Discussion in 'C++' started by Frederic, Jul 3, 2003.

  1. Frederic

    Frederic Guest

    Is the memory allocated by new operator automatically initialized to
    Zeros.

    say: int* init=new int[100];
    are all the int numbers pointed by *(init+i)(0=<i<100) get initialized?


    ==============================================================================================================================================================================================
    Frederic, Jul 3, 2003
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. =?Utf-8?B?a2Q=?=

    Naive question: Crystal reports in ASP.NET

    =?Utf-8?B?a2Q=?=, May 28, 2005, in forum: ASP .Net
    Replies:
    1
    Views:
    410
    Peter van der Goes
    May 28, 2005
  2. Newsgroup - Ann
    Replies:
    1
    Views:
    2,096
    Davlet Panech
    Oct 29, 2003
  3. Gabriel B.

    naive doc question

    Gabriel B., Jan 30, 2005, in forum: Python
    Replies:
    2
    Views:
    280
    Duncan Booth
    Jan 30, 2005
  4. naive size of array question

    , Nov 21, 2005, in forum: C Programming
    Replies:
    7
    Views:
    310
    Mike Wahler
    Nov 21, 2005
  5. salmobytes

    Naive question about html editors

    salmobytes, Mar 5, 2008, in forum: HTML
    Replies:
    0
    Views:
    292
    salmobytes
    Mar 5, 2008
Loading...

Share This Page