How to add two numbers with using function?

Answer Posted / vinay kumar

suppose x=5 and y=10,Then
while(y!=0)
{
x++;
y--;
}
printf("the sum value is:%d
",x);

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain what is meant by high-order and low-order bytes?

630


What is context in c?

536


Difference between exit() and _exit() function?

652


How can you access memory located at a certain address?

663


How many keywords (reserve words) are in c?

613






a number whose only prime factors are 2,3,5, and 7 is call humble number,,write a program to find and display the nth element in this sequence.. sample input : 2,3,4,11,12,13, and 100.. sample output : the 2nd humble number is 2,the 3rd humble number is 3,the 4th humble number is ,the 11th humble number is 12, the 12th humble number is 14, the 13th humble number is 15, the 100th humble number is 450.

4540


Write a program to generate the Fibinocci Series

656


What is #include stdio h?

677


the process of defining something in terms of itself is called (or) in C it is possible for the functions to call themselves. A function called a) nested function b) void function c) recursive function d) indifinite function

754


What is the modulus operator?

730


why we wont use '&' sing in aceesing the string using scanf

1777


What are different types of variables in c?

566


Tell me what is null pointer in c?

610


Write a program to check whether a number is prime or not using c?

570


What is the use of getch ()?

629