In Python it's possible to format strings conveniently using f-strings:
num = 12
print(f"num is {num}") # prints "num is 12"
Is it possible to do something like this in C? Or something that is similar to that? Currently, to add variables to the output I am using this method:
int num = 12;
printf("num is %d", num);
Is this the only way to add variables to a print statment in C?