Signature Program Question:
Download Job Interview Questions and Answers PDF
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);
}
Download Signature Program Interview Questions And Answers
PDF