Home » C Programming » Input / Output

What will be the output of the program? #include int main() { int a=250; printf("%1d\n", a); return 0; }

Correct Answer: 250

Explanation:

int a=250; The variable a is declared as an integer type and initialized to value 250.


printf("%1d\n", a); It prints the value of variable a.


Hence the output of the program is 250.


← Previous Question Next Question→

Discussion & Comments

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