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 is pointers in c?
Is malloc memset faster than calloc?
What is the difference between functions abs() and fabs()?
Differentiate abs() function from fabs() function.
find out largest elemant of diagonalmatrix
What are the rules for identifiers in c?
What is a char c?
how to find anagram without using string functions using only loops in c programming
What does printf does?
Given only putchar (no sprintf, itoa, etc.) write a routine putlong that prints out an unsigned long in decimal. [ I gave the obvious solution of taking % 10 and / 10, which gives us the decimal value in reverse order. This requires an array since we need to print it out in the correct order. The interviewer wasn't too pleased and asked me to give a solution which didn't need the array ].
Can 'this' pointer by used in the constructor?
What is difference between && and & in c?
Why do we use stdio h and conio h?
What is volatile keyword in c?
Explain what is the advantage of a random access file?