C program of Function with No parameter but return value

/* C program of Function with No parameter but return value*/ #include<stdio.h> int add() { int a=4,b=4,c; c = a+b; return c; } int main() { int p; p = add(); //Function call printf("%d\n",p); return 0; }

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.