-
help needed
ahh help my borland stopped working and i need to know what the output is. i think i know what it is just by working it out on paper but i cant be sure as im sorta new to borland..
help me please
Code:
#include<conio.h>
#include<stdio.h>
int funct 1 ( int count 1 );
int main()
{
int a, count1;
clrscr();
for ( count 1 = count 1 <= 4; count ++ )
{
a=funct1 (count1);
printf ( " %4d", a);
}
getch();
return(0);
}
int funct1 (int x)
{
int y;
y=2*x;
retum(y) ;
}
-
Not really funny.
Code:
#include<conio.h>
#include<stdio.h>
int funct1 (int);
int main()
{
int a, count1;
clrscr();
for (count1 = 0;count1 <= 4; count1++ )
{
a=funct1 (count1);
printf ( " %4d", a);
}
getch();
return(0); //return not retum,and 0 not O
}
int funct1 (int x)
{
int y;
y=2*x;
return(y);
}
-
err funny..yeah im funny without even knowing it
ever heard of a typo...
does someone wanna chuck it in borland and check what the outpue result it please
-
The output should be (executing it in my head)
-
thanx thought so
cheers mate