On Tue, 21 Oct 2025 15:05:25 -0400, Phil Smith III <[email protected]> wrote:

>Can you explain these two sentences for me? I'm sure they're coherent but not 
>to me:

Most of the world uses GCC C instead of IBM XL C.

>> GCC does not have this limit and is more likely to confuse people that type 
>> mismatches. 
>"that type mismatches" doesn't scan for me?

a.c:4:51: warning: format specifies type 'char *' but the argument has type 
'int' [-Wformat]

GCC C will not produce this compile time error. GCC C programmers are far more 
likely to exceed the max printf substitutions than type mismatch.

>>Also, GCC does not parse arg 1 at compile time.
>"arg 1" of what?

In the case of PRINTF, arg 1 is the formatting string. PRINTF is not the only 
function to use this implementation technique (e.g. SQL queries). Are these 
other implementations restricted to 10 arguments. 

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to