+ 2
Can we call a function at the time of printing.
when we write a print statement. can we call a function at that time?
5 Answers
+ 13
JavaScript I think. useful question and answer.
+ 7
yes, you can. but make sure there's no print in that function and the function has to return something.
function do_something() {
return âhello worldâ;
}
print(do_something());
+ 2
for which language?
+ 1
In C++ you can...
0
Yes, this can be done. In Python as well.