Ask Your Question
3

What is an incompatible pointer to a function?

asked 2022-03-08 11:00:00 +0000

woof gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2023-03-13 07:00:00 +0000

lalupa gravatar image

An incompatible pointer to a function is a situation where a function pointer is declared to point to a function of a certain type, but then it is assigned to a function of a different type. This can lead to errors or undefined behavior when the function is called using the function pointer. For example, if a function pointer is declared to point to a function that takes an integer as an argument and returns a float, but then it is assigned to a function that takes a string as an argument and returns an integer, this would be an incompatible pointer to a function.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2022-03-08 11:00:00 +0000

Seen: 17 times

Last updated: Mar 13 '23