difference of two no's with out using - operator

Answer Posted / arpit

void count()
{
int c=0;
for(i=a;i<=b;i++)
{
c++;
}
return(c);
}

c=b-a :...easy and best .....

Is This Answer Correct ?    10 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the difference between call by value and call by reference in c language?

637


What is c language & why it is used?

570


What is the difference between array and pointer?

560


Why does everyone say not to use scanf? What should I use instead?

676


Why main is not a keyword in c?

637






Write a C program in Fibonacci series.

622


What is the g value paradox?

633


what are non standard function in c

1422


Write a program to swap two numbers without using third variable?

810


How to write a program for machine which is connected with server for that server automatically wants to catch the time for user of that machine?

1580


pgm to find number of words starting with capital letters in a file(additional memory usage not allowed)(if a word starting with capital also next letter in word is capital cann't be counted twice)

1853


formula to convert 2500mmh2o into m3/hr

487


What is a null pointer assignment error? What are bus errors, memory faults, and core dumps?

893


write a program to find the given number is prime or not

3824


What is a nested loop?

641