> arguments with no return type ~ Online tutorial

arguments with no return type

Function with argument and no return type:

#include

#include

void print();

void line(int x,int y);

void main()

{

int a,b;

clrscr();

print();

printf("Enter thevalues");

scanf("%d%d",&a,&b);

line(a,b);

print();

getch();

}

void print()

{

int a;

for(a=0;a<=10;a++)

printf("-");

}

void line(int a,int b)

{

int c;

c=a+b;

printf("%d",c);

}

Please Give Us Your 1 Minute In Sharing This Post!
Please Give Us Your 1 Minute In Sharing This Post!
SOCIALIZE IT →
FOLLOW US →
SHARE IT →
Powered By: BloggerYard.Com

0 comments: