box-o-sand/oldstuff/PracticingC/gowrikumar/src/09-multipleassignment.c

21 lines
390 B
C
Raw Normal View History

2011-06-19 11:37:44 +00:00
/**
* :author: Dan Buch (daniel.buch@gmail.com)
*/
#include <stdio.h>
int main()
{
/* FIXME: the comma after "a = 1" makes the compiler angry. Either the
* ", 2" should be removed or another assignment should be added.
int a = 1, 2;
*/
int a = 1, b = 2;
printf("a: %d\n", a);
printf("b: %d\n", b);
return 0;
}
/* vim:filetype=c:fileencoding=utf-8
*/