another bug exercise
This commit is contained in:
parent
cf6f47c990
commit
803101b36f
20
gowrikumar/src/09-multipleassignment.c
Normal file
20
gowrikumar/src/09-multipleassignment.c
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
/**
|
||||||
|
* :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
|
||||||
|
*/
|
Loading…
Reference in New Issue
Block a user