C语言中的逗号运算符

 

#include <stdio.h>

int main(void)
{
 int a,b,c,d;
 a = 3;
 b = 4;
 c = a,b;
 d = (a,b);
 printf("c = %d/n",c);
 printf("d = %d/n",d);
 return 0;
}

c = 3

d = 4

posted @ 2012-09-09 14:24  byfei  阅读(158)  评论(0编辑  收藏  举报