PRG 218 Wk 2 Discussion – Common Bug: = vs. ==

0 items
PRG 218 Wk 2 Discussion - Common Bug: = vs. ==
PRG 218 Wk 2 Discussion – Common Bug: = vs. ==
$3.00
  • Description

PRG 218 Wk 2 Discussion – Common Bug: = vs. ==

Post a total of 3 substantive responses over 2 separate days for full participation. This includes your initial post and 2 replies to other students.

Due Thursday

Respond to the following in a minimum of 175 words:

Accidentally using the assignment operator “=” when you meant to use the comparison “is equal to” operator “==” is a common programming mistake.

Research whether or not the compiler can catch this mistake. Additionally, experiment with a statement similar to if (6 == myVariable) and see if it compiles correctly.

If you determine that the compiler will not catch this mistake, discuss a programming practice that can help reduce these errors.

Due Monday

Reply to at least two of your classmates. Be constructive and professional in your responses.