answersLogoWhite

0

real value needed

A compile time error i.e ..

Error: possible loss of precision: double, required: int

None, it will converted automagically.

User Avatar

Wiki User

15y ago

What else can I help you with?

Continue Learning about Engineering

Can an float value be assigned to int variable?

Yes, an integer can be assigned as a float value.But it get stored as a float value, that is an implicit type conversion occurs during compilation.Smaller data types are convertible to larger data types.eg:float b=12;// an integer constant is assigned to a float variableprintf("%f",b);// when printing b it will print as 12.000000


Loss of precision error in java?

A loss of precision error occurs when you use a variable of a data type that holds more decimal values than the type of the variable you are converting/inserting to.


What is the difference between deadlock and a race condition?

Race ConditionsA race condition occurs when two threads access a shared variable at the same time. The first thread reads the variable, and the second thread reads the same value from the variable. Then the first thread and second thread perform their operations on the value, and they race to see which thread can write the value last to the shared variable. The value of the thread that writes its value last is preserved, because the thread is writing over the value that the previous thread wrote.DeadlocksA deadlock occurs when two threads each lock a different variable at the same time and then try to lock the variable that the other thread already locked. As a result, each thread stops executing and waits for the other thread to release the variable. Because each thread is holding the variable that the other thread wants, nothing occurs, and the threads remain deadlocked.


What is type equivalence in programming language?

Type equivalence occurs when two variables are of the same type. For example, if both variables are int (integer variables), they are of equal types. Equivalence can also occur with two different types that are compatible with each other.


How do the four schedules of partial reinforcement work?

The four schedules of partial reinforcement—fixed ratio, variable ratio, fixed interval, and variable interval—determine how often a behavior is reinforced. In a fixed ratio schedule, reinforcement occurs after a set number of responses, while in a variable ratio schedule, reinforcement is provided after a random number of responses, leading to high and steady rates of behavior. Fixed interval schedules reinforce behavior after a fixed amount of time has passed, resulting in a pause after reinforcement. In contrast, variable interval schedules reinforce behavior after varying time intervals, promoting consistent behavior over time due to unpredictability.

Related Questions

Can an float value be assigned to int variable?

Yes, an integer can be assigned as a float value.But it get stored as a float value, that is an implicit type conversion occurs during compilation.Smaller data types are convertible to larger data types.eg:float b=12;// an integer constant is assigned to a float variableprintf("%f",b);// when printing b it will print as 12.000000


What is a dependent variable in a science experiment?

A change wich occurs because of the independent variable.


What type of relationship occurs when one variable decreases while the other variable increases?

A negative relationship, also known as an inverse relationship, occurs when one variable decreases while the other variable increases. This means that as one variable changes in one direction, the other variable changes in the opposite direction.


Why is it important to not change your variable in an experiment?

If you change more that one variable in an experiment, then when the result occurs, you won't know which variable caused the change.


Does Exponential decay occurs if the base of an exponential function is a positive integer?

Yes.


What is the degree of a variable in a monomial?

The number of times that the variable occurs as a factor in the monomial. In other words, the exponent of the variable, e.g., x² - x + 6 is 2nd degree.


What is moderating variable?

Moderation occurs when the relationship between two variable depends on a third variable. The third variable is referred to as the moderate variable or simply the moderator


Is evaporation a manipulated variable?

No, evaporation is a natural process that occurs when a liquid turns into a gas. It is not typically a manipulated variable in an experimental setting.


How often is the sum of a negative integer and positive integer zero?

The sum of a negative integer and a positive integer is zero only when the two integers have the same absolute value. For example, if you have -3 (negative integer) and +3 (positive integer), their sum is zero. However, in general, this situation occurs infrequently since it requires specific values. Most of the time, the sum will be a negative integer if the absolute value of the negative integer is greater than that of the positive integer, and a positive integer if the opposite is true.


What integer is a multiple of three five and seven in which no digit occurs more than once?

105


If five consecutive numbers have a sum of 360 what is the value of the greatest integer?

The value of the greatest integer is 76. This occurs when the set of five consecutive integers is all even numbers.


What is a variable interval schedule?

Variable-interval schedule (VI) is a reinforcement schedule in which reinforcement is provided for the first response that occurs after a variable amount of time from the last reinforcer or the start of the trial interval.