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

Write your answer as a fraction in simplest form 7/12+8/9
What are the four basic parts found in all cells?
- x / 3 = 6 ( solving linear equations )
Is 63ab/7a and 9ab equivalent?
Approximate the cube root. Round to the nearest tenth.
Suppose M is the midpoint of line FG. A) FM= 5y+13, MG=5-3y, FG=? B) FM=8a+1, FG=42, a=?
where can landforms be found
In the standard (x,y) coordinate plane, a line segment has its endpoints at (3,6) and (9,4). What are the coordinates of the midpoint of the line segment?
What is the weight of a toy car that has a mass of 0.28 kg?
what is .27 repeating as a fraction