[ create a new paste ] login | about

Link: http://codepad.org/QzOUVMZz    [ raw code | output | fork ]

slevy1ster - C, pasted on Aug 13:
1
2
3
4
5
6
7
8
9
10
11
12
13
#include <stdio.h>
#include <stdlib.h>
int main() {
  int a=1,b=2,c=3;                // comma separator
  printf("%d %d %d\n",a,b,c);

  (a=10,b=20,c=30);                 // comma operator
  printf("%d %d %d\n",a,b,c);

  printf("%d",(a=100, b=200, c=300));  // comma operator

  return 0;
}


Output:
1
2
3
1 2 3
10 20 30
300


Create a new paste based on this one


Comments: