How to divide 2 int in c?

You need a double variable to store the result. int stores only integers. Additionally, you have to typecast the other variables also before performing the division. Do something like this NOTE: You do not need the & in printf() statements.

What is the reason for having ‘//’ in Python?

I saw this in someone’s code: where img_index is a running index and num_images is 3. When I mess around with // in IPython, it seems to act just like a division sign (i.e. one forward slash). I was just wondering if there is any reason for having double forward slashes?