C Programming - Input / Output - Discussion

Discussion Forum : Input / Output - Yes / No Questions (Q.No. 3)
3.
Will the following program work?
#include<stdio.h>

int main()
{
    int n=5;
    printf("n=%*d\n", n, n);
    return 0;
}
Yes
No
Answer: Option
Explanation:
It prints n=    5
Discussion:
22 comments Page 3 of 3.

Vivek said:   1 decade ago
How it works? Please explain.

Bambi said:   1 decade ago
What is the significance of '*' in this ?


Post your comments here:

Your comments will be displayed after verification.