Answers were Sorted based on User's Feedback
Answer / anandi
printf("Enter two numbers: ");
printf("The Sum is: %d",add(a,b));
int add(int x,int y)
|Is This Answer Correct ?||42 Yes||14 No|
Answer / balaji
/*this program is used to add two numbers using functions */
printf("enter the two digits/numbers which you want to add");
void add(int a,int b)
printf("the sum of %d and %d is %d",a,b,c);
|Is This Answer Correct ?||5 Yes||3 No|
Answer / sathish kumar .k
printf("Enter Two Nos");
|Is This Answer Correct ?||18 Yes||26 No|
this has been demonstrated by a simple program.......
in C we ourselves can write a function for addition and
include wherver we want to add numbers.....
1) first write the function definition for the function u
are gonna write for addition....in a new file
int addition_arthmetic(int a, int b)
2) dont run or compile this , directly save this file in .c
extension.. let us say "add.c".
3) then open a new file and write the program for addition
by getting the 2 i/p from the user...
#include "add.c" // we are including tthe file add.c"
printf("enter the values for a&b");
c=addition_arthmetic(a,b);// we call the function defined in
printf("\n\n the added value of a&b is :%d",c);
|Is This Answer Correct ?||13 Yes||24 No|
1 1 1 1 2 1 1 3 3 1 1 4 6 4 1
sum of two integers values only other then integer it should print invalid input.
WHAT IS ABSTRACT DATA TYPE
a program that performs some preliminary processing in C, it acts upon certain directives that will affect how the compiler does its work a) compiler b) loader c) directive d) preprocessor
why we shiuld use main keyword in C
What is the purpose of ftell?
control 50 devices which has 2 states on and off.using bitwise operator.plz answer it its urgent
please explain every phase in the "SDLC" in the dotnet.
What are the advantages of using new operator as compared to the function malloc ()?
How many header files are in c?
What is the difference between malloc() and calloc()?
Why calloc is better than malloc?