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
What is the use of typedef in c?
write a program to print largest number of each row of a 2D array
What is a pointer value and address in c?
count = 0; for (i = 1;i < = 10; i++);count = count + i; Value of count after execution of the above statements will be a) 0 b) 11 c) 55 d) array
Explain what are compound statements?
Write a code to determine the total number of stops an elevator would take to serve N number of people.
What is bss in c?
Why C language is a procedural language?
Is array a primitive data type in c?
Why header file is used in c?
What is action and transformation in spark?
What is identifier in c?
what is the function of pragma directive in c?
Explain what does the function toupper() do?
What is the use of a static variable in c?