3 ms·
the '+' operator provides concatenation of strings in both python and C; in Excel, you use '=CONCAT()'... just syntactic differences, is all.
by boston_clone 4y ago
the '+' operator provides concatenation of strings in both python and C; in Excel, you use '=CONCAT()'... just syntactic differences, is all.
- zrobotics 4y agoYeah, I spend more time doing data manipulation in python than in excel, so I thought that excel would do that as well.
- Dylan16807 4y agoIt's not just a syntactic difference. It's a huge UX difference that one operator always does an addition on both numbers and numeric strings, and another operator always concatenates both numbers and numeric strings. The looser your typings the more it matters, and spreadsheets barely even have types.
- wizofaus 4y agoIn C? How?
- boston_clone 4y agosorry, meant cpp! C (apparently) uses a function that more closely resembles Excel
- wizofaus 4y agoC has strcat but that only does the easy part - allocating and freeing the memory is still the caller's b job.