Hi. I'm trying to concatenate 3 intergers, but I'm getting an error that says I'm missing a closing parentheses before a numeric constant. Here's the code:
Code:
#include<stdio.h>
#include<stdlib.h>
//printf_Concatenation.c
int main()
{
puts("Integers:");
printf("As easy as %d, %d, and %d!"1,2,3);
printf("The first number is %d, the second number is %d, and the third number is %d."1,2,3);
puts("Strings:");
printf("You are the %s link. Goodbye!\n","weakest");
puts("Floating-Point Values and/or Fractions:");
puts("Single Chars:");
puts("Percentage");
printf("I got %d%% on my C programming exam!\n",99);
}
The error for line 9 says:
9 87 C:\Dev-C_Projects\printf_Concatenation.c [Error] expected ')' before numeric constant