+ 1
What happens if a string is multiplird by 0(zero)?
3 Answers
+ 9
Just mention the language you are talking about. It would be easier for others to understand your question.
If you are talking about Python, then you won't get any output as
str = "Hello"
print(0*str) #outputs nothing
So you won't get any output as the there is no string to print
+ 5
There will be 'No output'
+ 4
Strictly spoken, in Python, if you multiply any str by 0, you get a str of zero length.