How to print size of any function? This question was asked but answer was not particle. According to previous answer it is different, when I used built in function to find the size of function?
#include<stdio.h>
void print(void)
{
printf("i m in print \n");
}
int main()
{
printf("%d\n",(int)main-(int)print); // o/p is 20 byte what is this 20
//is size of function?previous asked answer
printf("size=%d\n",sizeof(print));// o/p is 1 byte ? how to get exact plz help?
}
~