Storage Class II-251
6.
#include <stdio.h>
float x=5.5;
void main()
{
float y,f();
clrscr();
x*=4.0;
y=f(x);
printf("%g %g",x,y);
}
float f(float a)
{
a+=1.3;
x-=4.5;
return a+x;
return 0;
}
Bug: Return 0 should be removed
7.
#include <stdio.h>
register int i;
void main()
{
clrscr();
for(i=3;i>0;i--)
printf(" % d",i);
getche();
}
Bug: Incompatible storage class
M11_ITL-ESL4791_02_SE_C11.indd 251 12/22/2012 5:05:16 PM
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset