Signature Program Question:
How to print sum of two number without using main function?
Answer:
by using functions
eg:
main()
{
sum();
}
sum()
{
int i,j;
printf("enter i,j values:");
scanf("%d%d",&i,&j);
printf("%d",i+j);
}
eg:
main()
{
sum();
}
sum()
{
int i,j;
printf("enter i,j values:");
scanf("%d%d",&i,&j);
printf("%d",i+j);
}