#include <stdio.h> void function(int x, int y){ } int main(){ int (*fptr)(int,int); fptr = function; int a = fptr(2,3); return 0; }
Standard input is empty
prog.c: In function ‘main’: prog.c:9:10: error: assignment from incompatible pointer type [-Werror] fptr = function; ^ cc1: all warnings being treated as errors
Standard output is empty