#19_(1)Functions in C

 # include <stdio.h>

//Without argument and with return value
int mohit()
{
    int a,b;
    printf("Enter value of a and b\n");
    scanf("%d%d", &a,&b);
    return a+b;    //Return value
}
int main()
{
    int c;
    c=mohit(/*Without argument*/);   
    printf("%d"c);
    return 0;
}

Comments

Popular posts from this blog

#64_Funtions for File I/O in C

#51_Ex_Game

#24_Stack_using_an_array