Answer Posted / anandi
#include<stdio.h>
#include<conio.h>
void main()
{
int add(int,int);
int a,b;
clrscr();
printf("Enter two numbers: ");
scanf("%d %d",&a,&b);
printf("The Sum is: %d",add(a,b));
getch();
}
int add(int x,int y)
{
return(x+y);
}
Is This Answer Correct ? | 42 Yes | 14 No |
Post New Answer View All Answers
What are the different types of control structures?
Write a program which returns the first non repetitive character in the string?
What are the types of pointers in c?
how much salary u want ? why u join in our company? your domain is core sector why u prefer software ?
any function have arguments one or more OR not . it is compulsary a) any function compulsary have one or more arguments b) any function did not have arguments. It is not compulsary c) it is optional it is not compulsary d) none of the above
WHICH TYPE OF JOBS WE GET BY WRITING GROUPS .WHEN THE EXAMS CONDUCTED IS THIS EXAMS ARE CONDUCTED EVERY YEAR OR NOT.PLS TELL ME THE ANSWER
What is c programing language?
Function calling procedures? and their differences? Why should one go for Call by Reference?
Is c is a high level language?
What is dynamic memory allocation?
What is c language and why we use it?
How to get string length of given string in c?
Does c have class?
Is main a keyword in c?
Can we declare function inside main?