Closed Apis035 closed 3 months ago
print(makeNumericSkewer()) and print(makeAlphabetSkewer()) is printing garbage. The returned string is still owned by those function and got freed at the end of the scope.
print(makeNumericSkewer())
print(makeAlphabetSkewer())
Nice catch :+1:
print(makeNumericSkewer())
andprint(makeAlphabetSkewer())
is printing garbage. The returned string is still owned by those function and got freed at the end of the scope.