printf("\n%d %d", a--, --b);
This is supposed to be ok, but it gives me this compiler error=
Parse error before string constant.
conflicting types for built-in function 'printf'
/* unary.c*/
/* Demonstrate unary operator prefix and postfix modes */
#include <stdio.h>
int a, b;
main(0
{
/* set a and b both equal to 5 */
a = b = 5;
/* Print them, decrementing each time. /*
/* Use prefix mode for b, postfix mode for a */
printf("\n%d %d", a--, --b);
printf("\n%d %d", a--, --b);
printf("\n%d %d", a--, --b);
printf("\n%d %d", a--, --b);
printf("\n%d %d", a--, --b);
return 0;
}
This is supposed to be ok, but it gives me this compiler error=
Parse error before string constant.
conflicting types for built-in function 'printf'
/* unary.c*/
/* Demonstrate unary operator prefix and postfix modes */
#include <stdio.h>
int a, b;
main(0
{
/* set a and b both equal to 5 */
a = b = 5;
/* Print them, decrementing each time. /*
/* Use prefix mode for b, postfix mode for a */
printf("\n%d %d", a--, --b);
printf("\n%d %d", a--, --b);
printf("\n%d %d", a--, --b);
printf("\n%d %d", a--, --b);
printf("\n%d %d", a--, --b);
return 0;
}
Comment