michicaLef michicaLef
  • 17-02-2017
  • Computers and Technology
contestada

Given the string variable address, write an expression that returns the position of the first occurrence of the string avenue in address.

Respuesta :

antonsandiego
antonsandiego antonsandiego
  • 23-02-2017
It depends on a language you code. I think this could be either C++ or Java. I know answer for both of them.
For C++:  address.find("Avenue")
For Java: 
address.indexOf("Avenue")
Answer Link

Otras preguntas

an airline allows each passenger 33 kilograms of luggage. carl has to lower the weight of his suitcase by 25% to stay within the limit. how much did the suiteca
The league of five nations, which remained powerful well into the eighteenth century, was formed as
There are 48 cows and 10 chickens. How many didn't?
The students were interviewed by the reporter. Rewrite the sentence using active voice.
Where would traceurs practicing parkour most likely be found? A. a special playing field B. a busy shopping center C. a deserted road or trail D. a
Need help with problem 11.
the rectangle below has an area of x(2 power) -6x -7 square meters and a width of x-7 meters. x-7 { x(2 power) - 6x - 7 } (( the { } is t
What is the right answer? He applied for a week's .... to look after the children while his wife was in hospital. A. Vacation B. Leisure C. Rest D. Leave
Which region wants independence for Buddhists in a communist country? Tibet Quebec Kashmir South Sudan
Jeremy bentham's ________ approach emphasizes the determination of behavior based on the amount of pleasure or pain the behavior can be expected to produce.