“&&” and “and” operator in C

前端 未结 8 1882
名媛妹妹
名媛妹妹 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:22

    The and operator is the text equivalent of && Ref- AND Operator

    The or operator is the text equivalent of || Ref.- OR Operator

    So resA and resB are identical.

提交回复
热议问题