Answer Posted / sandeep
int count(int a , int b)
{
int c=0;
if(a<b)
for(i=a;i<=b;i++)
{
c++;
}
else
for(i=b;i<=a;i++)
{
c++;
}
return(c); }
www.NSITFORUM.co.cc
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
if a is an integer variable, a=5/2; will return a value a) 2.5 b) 3 c) 2 d) 0
What is use of null pointer in c?
write a program to find the given number is prime or not
What does static variable mean in c?
What is the use of getchar() function?
What are the restrictions of a modulus operator?
Why & is used in scanf in c?
Write a C++ program to generate 10 integer numbers between - 1000 and 1000, then store the summation of the odd positive numbers in variable call it sum_pos, then find the maximum digit in this variable regardless of its digits length.
How can I read data from data files with particular formats?
How many keywords (reserve words) are in c?
a program that performs some preliminary processing in C, it acts upon certain directives that will affect how the compiler does its work a) compiler b) loader c) directive d) preprocessor
What is wrong with this initialization?
How to write a code for reverse of string without using string functions?
What is page thrashing?
Is there a way to switch on strings?