![]() |
|
#1
|
|||
|
|||
runtime, compile time...can someone please explain the difference between run time and compile time for me ( in an easy understandable way.)
|
|
#2
|
||||
|
||||
|
Hello kai85. I am not sure of the official or school definition, but I can tell you the meaning that it has for me.
When you declare a variable, you have the option of allocating memory for that variable at compile time or at run time. For example, let's take an array. Suppose that you want work with 2-d matrices. So in your program, you would define: CPP / C++ / C Code:
That would give you a 100x100 matrix of integers and it can not be changed unless you change your program and recompile it. This is known as compile time memory allocation. Right or wrong, I ussually refer to this as a static definition. Beyond, that it can't be changed, there is also some differences of how & where the memory is allocated and in addition it can not be "free'd" until the program is over. Now, for the next example: CPP / C++ / C Code:
There may be more to it than that, but that is my basic understanding. HTH, d __________________
The best damn Sports Blog period. |
|
#3
|
|||
|
|||
|
Quote:
yea , thats what it thought too, just wanted to be sure. thanks. |
Recent GIDBlog
Toyota - 2008 November Promotion by Nihal
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Simulation Problem | wu_weidong | C++ Forum | 7 | 12-Mar-2005 23:56 |
| [CONTEST?]Data Structure Test | dsmith | C Programming Language | 2 | 06-Jun-2004 16:13 |
| Re: Programming Techniques | WaltP | C Programming Language | 0 | 10-Mar-2004 00:56 |
| time Problem | zuzupus | MySQL / PHP Forum | 9 | 24-Jul-2003 08:02 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The