fn f(x)

{ if(x<=0)
return;
else f(x-1)+x;
}

Answer Posted / guest

fn(5)
i guess

Is This Answer Correct ?    16 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Did c have any year 2000 problems?

646


What is assert and when would I use it?

568


What is function and its example?

615


How many bytes are occupied by near, far and huge pointers (dos)?

656


How do you initialize pointer variables?

597






.find the output of the following program? char*myfunc(char*ptr) { ptr +=3; return (ptr); } int main() { char*x,*y; x="HELLO"; y=myfunc(x); printf("y = %s ",y); return 0; }

1981


What is the use of pragma in embedded c?

583


in case any function return float value we must declare a) the function must be declared as 'float' in main() as well b) the function automatically returned float values c) function before declared 'float' keyword d) all the above

582


Write a program to compute the similarity between two strings - The program should get the two strings as input - Then it will output one single number which is the percentage of similarity between the two strings

2236


what value is returned to operating system after program execution?

1590


What is volatile c?

509


What Is The Difference Between Null And Void Pointer?

629


What are structures and unions? State differencves between them.

603


Can true be a variable name in c?

550


What are the disadvantages of a shell structure?

682