Why isn't sizeof(a()) is not printing Heo?

Viewed 58

Why isnt sizeof(a()); isn't printing helo ? Why the Function is not called.

But cbrt is also a function and it is calling a(); and printing helo clearly.

But why isn't sizeof(a()); calling a(); What is happening inside the compiler.

Why sizeof(a()); unable to call the function a();

But

cbrt(a()); is clearly able to call function a();

sizeof(a());



#include<stdio.h>
#include<math.h>
int main()
{ 
    printf("%d\n",sizeof(a()));
   
}
int a()
{
    printf("Helo");
    return 0;
}

https://i.stack.imgur.com/NBMaV.jpg

But cbrt(a());


#include<stdio.h>
#include<math.h>
int main()
{ 
    printf("%d\n",cbrt(a()));
   
}
int a()
{
    printf("Helo");
    return 0;
}


https://i.stack.imgur.com/NMp33.jpg

0 Answers
Related