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

Write a program for finding factorial of a number.

629


Can include files be nested? How many levels deep can include files be nested?

652


What is c language used for?

553


What are variables c?

612


What is the scope of an external variable in c?

563






The difference between printf and fprintf is ?

714


design and implement a data structure and performs the following operation with the help of file (included 1000 student marks in 5 sub. and %also) 1.how many students are fail in all 5 subjects (if >35) 2. delete all student data those are fail in all 5 subjects. 3. update the grace marks (5 no. if exam paper is 100 marks) 4. arrange the student data in ascending order basis of marks. 5.insert double of deleted students with marks in the list.

1491


Can 'this' pointer by used in the constructor?

608


List some applications of c programming language?

545


What is the purpose of sprintf() function?

595


What is the symbol indicated the c-preprocessor?

691


How can you tell whether a program was compiled using c versus c++?

616


Can you write the function prototype, definition and mention the other requirements.

656


Write the test cases for checking a variable having value in range -10.0 to +10.0?

1813


What was noalias and what ever happened to it?

590