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

what was the name given to theodore roosevelt's plan to keep the wealthy from taking advantage of small businesses and the poor
7.9 is closer to what number
C=85x+60 solve for x
what is 312% of 10.5 ?
How does the divestment of oligopoly firm affect consumer welfare
Length is 380 miles with is 280 miles what is the area
How do I write the equations of lines through the given point parallel to the given line and perpendicular to the given line?
How to check respiratory
What is the theoretical yield of hydrogen gas if 5.00 mol of zinc are added to an excess of hydrochloric acid?
Evaluate (sin 11π/6-tan5π/6)(sin 11π/6+tan5π/6)