Question
#include<stdio.h>
int main()
{
int a=250;
printf("%1d\n", a);
return 0;
}
What will be the output of the program ?
#include<stdio.h>
int main()
{
int a=250;
printf("%1d\n", a);
return 0;
}
Answer: Option D
Was this answer helpful ?
int a=250; The variable a is declared as an integer type and initialized to value 250.
printf("%1d`setminus`n", a); It prints the value of variable a.
Hence the output of the program is 250.
Was this answer helpful ?
Submit Solution