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