Home » Technical Questions » Programming

If I use the following printf() to print a long int why I am not warned about the type mismatch? printf ("%d",num );

Correct Answer: When a function accepts a variable number of arguments , its prototype cannot provide any information about the number of arguments and type of those variable arguments Hence the compiler cannot warn about the mismatches The programmer must make sure that arguments match or must manually insert explicit typecast

← Previous Question Next Question→

Discussion & Comments

No comments yet. Be the first to comment!
Join Discussion