c - How to print size of any function. This was asked before but answer was not particle? -
this question has answer here:
- how can size of c++ function? 7 answers
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
Post a Comment