c – What does (int*) mean?

Question:

For example

pry = (int*)i;

Or such

void(*st)(void)

I know it's a pointer, but only if when declaring a variable.

Answer:

Line one: casting i to a pointer-to-int type.

Line two: declaration of a pointer to a function of type void f(void) with the name of the pointer st.

Scroll to Top