write a 'c' program to sum the number of integer values
Answer Posted / arunkumar
#include<stdio.h>
#include<conio.h>
fun(int n);
int main()
{
int n=10;
printf("%d",fun(10));
}
fun(int n)
{
if(n<1)
return n;
else
return (n+fun(n-1));
}
| Is This Answer Correct ? | 5 Yes | 7 No |
Post New Answer View All Answers
Differentiate between functions getch() and getche().
How do you list files in a directory?
develop algorithms to add polynomials (i) in one variable
Can you write the function prototype, definition and mention the other requirements.
PLS U SENS ME INTERVIEW O. MY EMAIL ADD, SOFIYA.SINGH@GMAIL.COM
how do you execute a c program in unix.
What is void main ()?
What is the auto keyword good for?
What are runtime error?
Find duplicates in a file containing 6 digit number (like uid) in O (n) time.
How to define structures? ·
What are different types of operators?
What is structure padding and packing in c?
a c variable cannot start with a) an alphabet b) a number c) a special symbol d) both b and c above
What is keyword in c?