Function with argument and no return value C Programming Home » C Functions » Function with argument and no return value /*Function with argument and no return value*/ #include #include void main() { int a,b; printf("\n Enter the First No. :"); scanf("%d",&a); printf("\n Enter the Second No. :"); scanf("%d",&b); Sum(a,b); getch(); } Sum(int x,int y) { int sum; sum= x + y; printf("Sum=%d", sum); } Output is as: Read more » Tweet Share Share Share Share Related Post
ConversionConversion EmoticonEmoticon