Pointers in function

while initializing a function pointer using & and even without it we get the address is it the syntax or any logic

hi @utkarsh2504 i am unable to understand your question, can you please share a code snippet?

well i was asking about arrays that if we print the first element without using & we still get the address so is it a property of array or any logic that it gives the address

@utkarsh2504 it is a property of arrays. I think you are either confused or you typed incorrectly, but you dont get array address by printing first element. You get the address of the first element if you try to print the array without specifying an index like this cout << arr;
Please mark the doubt as resolved if it is clarified now!