1
#include<stdio.h>

int main()
{
    printf("%d", -3 < sizeof(int));
    return 0;
}

I hear the return type of sizeof is size_t and not int. Can anyone tell me about this size_t or any other explanation?

Shafik Yaghmour
  • 148,593
  • 36
  • 425
  • 712
pa1
  • 658
  • 2
  • 11
  • 21
  • 1
    To avoid the implicit conversion to `unsigned` you have to cast the result of `sizeof` back to `int`. – jweyrich Aug 14 '14 at 12:17

0 Answers0