I wanted to know the size of function. I have written the following code
Now I used the sizeof of function, as of now it gives me 1. why? I want to know the size of the entire function. How to write a program for the same. Please help.Code:#include <stdio.h> void (*p)(int); void test_func(int); int main(void) { p = test_func; (*p)(4); printf("%d",sizeof(test_func)); return 0; } void test_func(int data) { printf("%d\n",data); }