Write a string expression consisting of the string “http://” concatenated with the variable’s string value.

Write a string expression consisting of the string “http://” concatenated with the variable’s string value.

LANGUAGE: C++

CHALLENGE:

Given a string variable address, write a string expression consisting of the string “http://” concatenated with the variable’s string value. So, if the value of the variable were “www.turingscraft.com”, the value of the expression would be “http://www.turingscraft.com”.

SOLUTION:



"http://" + address

Add comment