What is //(in python) in C? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What is //(in python) in C?

In python we have this operator // .Does C have that operator?

2nd May 2020, 1:43 PM
Burn
Burn - avatar
2 Answers
+ 3
In C it is not needed, because if you divide two ints, like 5/2, you get 2 instead of 2.5 anyway.
2nd May 2020, 1:48 PM
HonFu
HonFu - avatar
+ 1
Thanks! Just reliased
2nd May 2020, 1:49 PM
Burn
Burn - avatar