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
an expression contains relational operators, assignment operators, and arithmatic operstors. In the absence of parentheses, they will be evaluated in which of the following order a) assignment, relational, arithematic b) arithematic, relational, assignment c) relational, arithematic, assignment d) assignment, arithematic, relational
What is difference between arrays and pointers?
Explain what is output redirection?
in linking some of os executables are linking name some of them
Are negative numbers true in c?
Can stdout be forced to print somewhere other than the screen?
Explain is it valid to address one element beyond the end of an array?
What is the collection of communication lines and routers called?
What is the difference between far and near in c?
What are Macros? What are its advantages and disadvantages?
What is structure of c program?
What does it mean when a pointer is used in an if statement?
What is a header file?
When we use void main and int main?
What is the use of structure padding in c?