Answer Posted / nithya
%d print the value for example
int x=2;
printf("x=%d",x);
output:
x=2
%*d print the value for example
int x=2;
printf("x=%*d",x);
output:
x= 2
the output two space(x=2) next the value will be display
(x=6) the output 6 space next the value will be display
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is 'bus error'?
what are bit fields in c?
Explain how do you sort filenames in a directory?
What is the need of structure in c?
How do I use strcmp?
What is a example of a variable?
What is a wrapper function in c?
When would you use a pointer to a function?
Explain data types & how many data types supported by c?
Is calloc better than malloc?
write a c program to find the sum of five entered numbers using an array named number
Why is sprintf unsafe?
How can I implement sets or arrays of bits?
What does static variable mean in c?
What are the benefits of organizational structure?