i have statements
printf("%f",(do uble)1); /* works fine although i have sent %f for
double */
printf("%c",(in t)64); /* works fine although i have sent %c for
int */
Need your comment on this.
As my understanding, when we pass something on variable argument, its
type will be promoted . char is promoted to Int . float is promoted to
double . that is why above things work fine.
let me know your comments on above statements. we can extends this talk
for signed and unsigned , and long double.
printf("%f",(do uble)1); /* works fine although i have sent %f for
double */
printf("%c",(in t)64); /* works fine although i have sent %c for
int */
Need your comment on this.
As my understanding, when we pass something on variable argument, its
type will be promoted . char is promoted to Int . float is promoted to
double . that is why above things work fine.
let me know your comments on above statements. we can extends this talk
for signed and unsigned , and long double.
Comment