“&&” and “and” operator in C

前端 未结 8 1876
名媛妹妹
名媛妹妹 2020-11-30 10:05

I am trying to calculate the Greatest Common Denominator of two integers.

C Code:

#include 

int gcd(int x, int y);

int main()
{
             


        
8条回答
  •  不知归路
    2020-11-30 10:38

    Basically and is just the text version of && in c. You do however need to #include . or it isn't going to compile.

    You can read more here:
    http://msdn.microsoft.com/en-us/library/c6s3h5a7%28v=vs.80%29.aspx

提交回复
热议问题