Use of different datatypes for pointer than of variable that is pointing at

what if we use float *ptr for a variable of type int ?

error will come
u can do like explicitly convert int to float