Category "variable-assignment"

Avoid URL parameter Manipulation

So in my case, after a user chooses a certain room, the number of nights he will stay and the number of guests, the price gets calculated (depending on certain

Using local variables with functions that take pointers in FreeRTOS

I need some explanation/clarification about using local variables in FreeRTOS when I need to pass them to another functions as pointers. For example I have some

Why do new variable names need to be on the left of the equals (=)?

I am curious as to why a certain format produces an error while the other doesn't. Code that works: name = input().split() if len(name) == 3: first_name, mid

jMeter Regular Expression Extractor with use of variable in regexp

I use jMeter 5.5-Snapshot 3a74a92. I need to use result of previous Regular Expression Extractor stored in variable in next Regular Expression Extractor when bo

jMeter Regular Expression Extractor with use of variable in regexp

I use jMeter 5.5-Snapshot 3a74a92. I need to use result of previous Regular Expression Extractor stored in variable in next Regular Expression Extractor when bo

When to use let/run/apply/with/also when an object is null?

I want to run a block of code depending if the variable is null or not, but I still don't know when to use let,run...etc. I want something like this: myVar?.xxx

Why does Go not allow assigning one generic to another?

Following code throws a compilation error cannot use ExampleProps (variable of type Props[Example]) as Props[Generic] value in return statement // Abstract ty

Why should I avoid using the increase assignment operator (+=) to create a collection

The increase assignment operator (+=) is often used in [PowerShell] questions and answers at the StackOverflow site to construct a collection objects, e.g.: $C

I have a project in college and I do some of the requirements [closed]

**my project talk about Shape hierarchy for every shape needs Inheritance, Polymorphism and Files I/0 I did a simple thing of the requirements

How do I make my code write messages to the terminal?

For an assignment I need to make a chat client in the terminals, but my code won't write to the terminals. I believe it might have something to do .write not wo

How do I 'declare' an empty bytes variable?

How do I initialize ('declare') an empty bytes variable in Python 3? I am trying to receive chunks of bytes, and later change that to a utf-8 string. However, I

When does assignment by reference occur in MATLAB?

This is a question about the MATLAB language. I am going through the MathWorks "Onramp" tutorial, and I have noticed a strange "assignment by reference" behavio

set default value in class constructor C#

I need a default value set and many different pages access and update..initially can I set the default value in the class constructor like this? What is the pr