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

What is the newline escape sequence?

0 Answers  


When can you use a pointer with a function?

0 Answers  


write a c program to find largest number in matrix(in each row,each column, diagonally, and in the whole matrix)? Its urgent.

2 Answers  


What is static and volatile in c?

0 Answers  


What is the output of following program ? int main() { int x = 5; printf("%d %d %d\n", x, x << 2, x >> 2); }

5 Answers   Amazon, Qualcomm,






The __________ attribute is used to announce variables based on definitions of columns in a table?

0 Answers  


What is substring in c?

0 Answers  


what is the use of a array in c

6 Answers  


Is the below things valid & where it will be stored in memory layout ? static const volatile int i; register struct { } ; static register;

2 Answers   Bosch,


what are the languages used in c#?

3 Answers   Infosys,


Three major criteria of scheduling.

1 Answers  


What is difference between main and void main?

0 Answers  


Categories