Size of any function is calculated as:
Size of function = Size of all local variable which has declared in function + Size of those global variables which has used in function+ Size of all its parameter+ Size of returned value if it is an address. Example:
What is size of calculate function?
int x=2;
int* calculate
void main(){
int *p,a=0,b=5;
p=calculate(a,b);
printf(
No comments:
Post a Comment