compile time and run time

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jeyshree
    New Member
    • Jul 2010
    • 75

    #16
    Originally posted by weaknessforcats
    Visual Studio.NET is the C/C++ compiler that I use.

    This compiler follows the C/C++ 1998 standard pretty closely.
    Hello,
    I cannot understand your last post which explains about compile time and runrime allocation due to a small spelling mistake made.Now I understood that code to allocate memory for static variable and initialising it take place as soon as call to the function is made at the first time.Please explain me the next two lines in my question to you.
    p=malloc(10);
    p=malloc(n*2);
    Thanks a lot

    Comment

    Working...