shusketh shusketh
  • 25-09-2018
  • Computers and Technology
contestada

Can someone explain what this means in pseudocode, more specifically the stuff in the perenthesis?
while (*str1 && *str1 == *str2) {
str1++;
str2++;
}

Respuesta :

JediNinja JediNinja
  • 28-09-2018

I dunno

it's very interesting as *str1 and *str1 are the same thing. I don't even know what the asterisk is for. Maybe it's just part of the variable name.

But from what I understand, it's testing if str1 is equal to str2 and adding 1 to both if the condition is true.


This could be entirely wrong, but it's better than nothing I guess.


Answer Link

Otras preguntas

Forty tickets are sold for a raffle with two prizes. You buy two tickets. What is the probability that you will win both prizes?
What cells. Join to cause conception? Can you help me with all of them?
How do you enlarged a shape by 300 percent?
A lever used to lift a heavy box has an input arm of 4 meters and an output arm of 0.8 meters. What is the mechanical advantage of the lever?
What is your rate in miles/hour if you run at a speed of 2.2 miles in 20 minutes?
How did socialist labor movements affect strife at start of 20th century
Help please 1. Summarize two harmful effects of acid rain 2. Predicting outcome how will the depletion of the ozone layer affect human health 3. Describe the gr
what is 144 over 324 simplified
-2(x+3y)=18 solve for y!
If the weight of a package is multiplied by 5/7 the result is 40.5 pounds. Find the weight of the package.