Which of the following code is likely to take less time to get executed?
/*Format 0*/
main(){
int a=3,b=5;
printf("%d",a*b);
}
/*Format 1*/
int mult(int a,int b){
return a*b;
}
main(){
printf("%d",mult(3,5));
}
/*Format 2*/
inline int mult(int a,int b){
return a*b;
}
main(){
printf("%d",mult(3,5));
}
As of now,I understand that the compiler inserts a snippet of the function everytime it encounters a function call to mult().Then which of the above is likely to be executed fastest?(If at all there is a differnce between their execution times in the range of nanoseconds or picoseconds?