Czy istnieje jakiś prosty sposób na zrobienie tego w C? :
#include <stdio.h>
#include <stdlib.h>
int main()
{
char *a;
a = ((char*)"napis%d\n", 3);
printf("%s", a);
return 0;
}
Oczywiście chodzi mi o to, aby program wyświetlił "napis3"