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
Using functions, write a program that multiplies two arrays. Use the following functions: - Function ReadArray - Function MultiplyArrays - Function DisplayArrays
in case any function return float value we must declare a) the function must be declared as 'float' in main() as well b) the function automatically returned float values c) function before declared 'float' keyword d) all the above
Can you please explain the difference between malloc() and calloc() function?
What are the different types of objects used in c?
What does 3 mean in texting?
What is %g in c?
How do we make a global variable accessible across files? Explain the extern keyword?
What is structure padding and packing in c?
What are the advantages of using macro in c language?
what is event driven software and what is procedural driven software?
What is the difference between array and pointer?
Design a program which assigns values to the array temperature. The program should then display the array with appropriate column and row headings.
What are register variables in c?
Is c weakly typed?
When should a type cast be used?