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
  • 154,301
  • 39
  • 440
  • 740
pa1
  • 778
  • 3
  • 11
  • 26
  • 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