C - Functions - Discussion

You Are Here :: Home > C > Functions - Discussion

 



Q.

void main()

{
int a=1,b=5,c;
clrscr();
c=operation(a,b);
printf("%d",c);
getch();
}
int operation(int a,int b)
{
int c;
c=++a * ++a * b++;
return c;
}
*a=*b;
*b=*temp;
}

A. 35 B. 40
C. 45 D. 55

Answer: Option C
Explaination:

Any function can return only one value at a time. If return type is int then there is not necessity of function declaration.



Discussion

Your Comments Goes here...
NameDiscussion