Two Equal Signs in One Line?

后端 未结 10 898
北荒
北荒 2020-12-06 04:58

Could someone please explain what this does and how it is legal C code? I found this line in this code: http://code.google.com/p/compression-code/downloads/list, which is a

10条回答
  •  心在旅途
    2020-12-06 05:34

    Assignment in C is an expression, not statement. Also you can freely assign values of different size (unsigned char to int and vice versa). Welcome to C programming language :)

提交回复
热议问题