The function that showed this behaviour is string formatting using printf.
Calling printf with just a string works, however adding another argument to be formatted triggers the error: "Error: Inconsistent number of parameters between call and function prototype"
A small program that triggers this behaviour is the following:
#include <stdio.h>
int main()
{
int a = 10;
printf("A is %d", a);
return 0;
}
The function that showed this behaviour is string formatting using printf. Calling printf with just a string works, however adding another argument to be formatted triggers the error: "Error: Inconsistent number of parameters between call and function prototype"
A small program that triggers this behaviour is the following: