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
What are the rules for the identifier?
What is meant by errors and debugging?
What are header files in c?
What is the size of enum in c?
Can you please compare array with pointer?
Implement bit Array in C.
How do I use void main?
How does normalization of huge pointer works?
Tell me with an example the self-referential structure?
Where are c variables stored in memory?
How will you divide two numbers in a MACRO?
Program will then find the largest of three numbers using nested if-else statements. User is prompted to enter three numbers. Program will find the largest number and display it on the screen. All three numbers entered by the user are also displayed. If user enters 21, 33, and 5, the output should be as follows: You entered: 21, 33 and 5. The largest number is 33.
What are the ways to a null pointer can use in c programming language?
What is nested structure in c?
How can I insert or delete a line (or record) in the middle of a file?