void main()
{
double fvar=8.7732;
printf("%*f\n",2,fvar)
}
what is output
1: 8.77
2: 8.7732
3: 0
4: compilation error
Answers
Answered by
5
4.. compilation error
Answered by
0
The output for the given code is the compilation error. Because there is a error in the code printf("%*f\n",2,fvar). This part of the code is not ended with a semi-colon ";" and the printf function "% *f \n" should be " %f" for a double data type. And the inclusion of the number "2" is irrelevant. And all these errors can throw an error at the time of compilation and hence it will end up in a compilation error.
Similar questions