It is undefined for the whole program.
In fact it is undefined before even the program exists: it is undefined what the compiler itself does in presence of the text printf("%s blah blah %d", int);
More Related Contents:
- String manipulation in C (replace & insert characters)
- C: unable to print from file
- printf anomaly after “fork()”
- How do you allow spaces to be entered using scanf?
- How to escape the % (percent) sign in C’s printf
- Avoid trailing zeroes in printf()
- C/C++ printf() before scanf() issue
- Set variable text column width in printf
- How do you format an unsigned long long int using printf?
- Printing UTF-8 strings with printf – wide vs. multibyte string literals
- Does printf(“%x”,1) invoke undefined behavior?
- How to printf a memory address in C
- string format for intptr_t and uintptr_t
- C: Which character should be used for ptrdiff_t in printf?
- Why doesn’t scanf need an ampersand for strings and also works fine in printf (in C)?
- How do I print a non-null-terminated string using printf?
- Difference between fprintf, printf and sprintf?
- Strings and character with printf
- How to repeat a char using printf?
- Left-pad printf with spaces
- write() to stdout and printf output not interleaved?
- fork() in c using printf [duplicate]
- Scanf/Printf double variable C
- How can I print a quotation mark in C?
- Printing chars and their ASCII-code in C
- MinGW GCC: “Unknown conversion type character ‘h'” (snprintf)
- C printf using %d and %f
- printf() with no arguments in C compiles fine. how?
- Printf without newline in assembly
- In C how do I print filename of file that is redirected as input in shell