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

A drawing of a surfboard in a catalog shows it's length as 8 4/9 inches. Find the actual length of the surfboard if 1/2 inch length on the drawing corresponds t
Doing monomials. How do you do this one?
Sylvan withdrew 2/5 of the amount in his savings account, and spent 7/10 of that money.  What fraction of his total savings does he still have?
What is 47% of 164 while using a fraction to estimate the percent of each number.
What are the prime numbers of numbers 1-49?
homophones for the words insignificant and small.  has to be 5 letters
choose the plural noun that's spelled correctly?A Fathers-in-lawD Editor in chiefs
Sylvan withdrew 2/5 of the amount in his savings account, and spent 7/10 of that money.  What fraction of his total savings does he still have?
After a rock is rounded how does weathering affect it
If (-3, y) lies on the graph of y = (1/2)x, then y =