Skip to content

Instantly share code, notes, and snippets.

@sterkhedkar
Last active August 29, 2015 14:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save sterkhedkar/e796ccab759927cbc52a to your computer and use it in GitHub Desktop.
Save sterkhedkar/e796ccab759927cbc52a to your computer and use it in GitHub Desktop.
A simple C program for Adding two integers Using Parametrised Function.
//Demo Program for addition of two integers
#include<stdio.h>
int main(){
int a,b,c;
printf("Enter two integers");
scanf("%d %d",&a,&b);
c=add(a,b);
printf("Addition is: %d",c);
getch();
}
int add(intx,inty){
int temp;
temp = x+y;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment