8. Find the syntax errors from the following program. Justify each error,
#include<iostream, h>
void main
{
float al=11.0:
Try_this(fvarl);
}
float Try_this( float fvarl)
{
fvarl++;
cout<<' The Number is '<<fvarl;
}
Answers
Answered by
1
Explanation:
#include<iostream, h>// .h extension should be there
void main//( ) missing
{
float al=11.0:// 11.0f and terminated with semicolon (;)
Try_this(fvarl);// fvarl variable declaration missing
}
float Try_this( float fvarl)
{
fvarl++;
cout<<' The Number is '<<fvarl;// "" should be placed
}
Similar questions