c program to subtract between two numbers without using '-'
sign and subtract function.



c program to subtract between two numbers without using '-' sign and subtract function...

Answer / pm

say, x-y
{
for (int i=y;i>=0;i--)
x--;
cout<<x;
}

Is This Answer Correct ?    1 Yes 1 No

Post New Answer

More C Interview Questions

If "AaBbCc" is passed to the char char x(*a) { a[0]?x(a+1):1; printf("%c",a[0]); return 1; } what will be the output?

6 Answers   Hughes,


The % symbol has a special use in a printf statement. Explain how would you place this character as part of the output on the screen?

0 Answers  


Suppose we have a table name EMP as below. We want to perform a operation in which, I want to change name ‘SMITH’ from as ‘SMITH JAIN’. Also I want to change the name of the column from ENAME to E_NAME. EMPNO ENAME JOB MGR HIREDATE SAL 7369 SMITH Coder 7902 17-DEC-80 800 7499 ALLEN SALESMAN 7698 20-FEB-81 1600 7521 WARD SALESMAN 7698 22-FEB-81 1250

0 Answers  


who is the father of C Language?

20 Answers   CTS, UST,


sir, i cannot find the way how to write aprogram by using array on queue

1 Answers   IISIT,


write a program to swap two numbers without using temporary variable?

3 Answers  


Here is a neat trick for checking whether two strings are equal

0 Answers  


What is "Duff's Device"?

0 Answers   Celstream,


write an algorithm which can find the largest number among the given list using binary search ............... this was asked in the interview

2 Answers   Satyam, UNIS, Wipro,


What is assert and when would I use it?

0 Answers  


What 'lex' does?

0 Answers   Tech Mahindra,


What does sizeof function do?

0 Answers  


Categories