answersLogoWhite

0


Best Answer

2

4

6

8

1o

12

14

16

User Avatar

Wiki User

11y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you initiate variable at compile and run time?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

Global variable conflict is at compile time or run time?

Linkage time.


What is run time?

"run time" is the opposite of "compile time". It refers to the time when the program is actually running.


What is compile time?

Compile Time: In longer form, you might say, "at the time of compiling", or, "when the program is compiled". When you compile a program, the compiler applies various processes to your source code in order to generate the executable files. These are actions that happen "at compile time". Other actions happen when you actually run the finished program. These actions are said to occur, at, or in, "run time".


What are runtime errors in c?

A run time error occurs when a compiled program executes, and during execution, the binary code attempts a task that is not permitted by the operating system or libraries. Divide by zero is an example of a run time error. When the executed program divides one variable by a second variable, and the second variable holds a value of zero, the run time library will issue a run time error. Since the compiler cannot predict the values held by the variables, it cannot prevent such an error from occurring, and so the run time library traps the run time error during program execution. . Some run time errors include: - divide by zero - no stack space - memory reference out of bounds - write protected file


Is overloading done at compile time or run time?

Overloading will be done at compile time itself. Proof: If you try to narrow down the access modifier for a method from public in the parent class to private in the child class while overloading, the compiler will not let you do it.

Related questions

Global variable conflict is at compile time or run time?

Linkage time.


How size-of variable is used in c?

The Sizeof () operator only works at compile time and doesn't evaluate anything at run time.


Is overriding done at compile time or run time?

compile time


At what time the memory is allocated for variable in c and c?

Static memory allocation occurs at compile time where as dynamic memory allocation occurs at run time.


What is compile time and run time?

Compile time is when the compiler translates your source code into computer language. Run time is when the actual program runs.


What is run time?

"run time" is the opposite of "compile time". It refers to the time when the program is actually running.


Difine run time error?

run-time error definition. An error in the execution of a program which occurs at run time, as opposed to a compile-time error. A good programming language should, among other things, aim to replace run-time errors by compile-time errors.


Difference between statically typed language and dynamically typed language?

Statically typed languages check type of variable at Compile time vs Dynamically typed language check type at run time


What does runtime mean?

actually the run time means at the time of executing the program. that means if you write a program and you compile it and you need to execute then during the compilation it is called compile time and during the execution it is called run time .


What is compile time?

Compile Time: In longer form, you might say, "at the time of compiling", or, "when the program is compiled". When you compile a program, the compiler applies various processes to your source code in order to generate the executable files. These are actions that happen "at compile time". Other actions happen when you actually run the finished program. These actions are said to occur, at, or in, "run time".


What is the difference between run-time error and compile error?

A run-time is an error that occurs when the program is executing (running). This is where segfaults and other horrible things happen. A compile-time error is an error that occurs when you are compiling the code. This is where code syntax and semantics are checked. You want errors to only occur here.


How can you say that delegates are type safe?

The type checking is done at compile time, not run time. So, if a wrong type (return or parameter) have been assigned, it will fail to compile, and the program will not run.