Doubt in calling function

here we are passing value in call function, wherein calling function f(&n), i do not get why are we using &n in calling function

have you familier with the concept of call by reference??

it is call by reference

we need to update/clear a bit in the value of n
if we pass it by value(without &) then change done inside function will not reflect back to main
because they are done on the copy of n

but when we pass it using & means we are passing by reference means we don’t copy the value of n instead we use the same n declare in main

so if we want that function changes should also reflect in main we have to pass it by reference

i hope this helps
if yes hit a like and don’t forgot to mark doubt as resolved
if you have more doubts regarding this feel free to ask