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
What are global variables?
Simplify the program segment if X = B then C ← true else C ← false
Are local variables initialized to zero by default in c?
What is the best style for code layout in c?
What is floating point constants?
Why do we use stdio h and conio h?
In which header file is the null macro defined?
a program that can input number of records and can view it again the record
How can you return multiple values from a function?
What is the use of parallelize in spark?
What is the use of void pointer and null pointer in c language?
What is the size of empty structure in c?
What is the use of structure padding in c?
What is the use of bit field?
hw can we delete an internal node of binary search tree the internal node has child node..plz write progarm