c - How to print size of any function. This was asked before but answer was not particle? -


this question has answer here:

how print size of function? question asked answer not particle. according previous answer different, when used built in function find 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 20 byte  20                                                //is size of function?previous asked answer       printf("size=%d\n",sizeof(print));// o/p 1 byte ? how exact plz help?  } 

~

function not exist compact contiguous regions in memory. why not possible find size of function. functions not have size.


Comments

Popular posts from this blog

java - How to specify maven bin in eclipse maven plugin? -

single sign on - Logging into Plone site with credentials passed through HTTP -

php - Why does AJAX not process login form? -