Write a C program to print 1 2 3 ... 100 without using
loops?
Answer Posted / olga
void printer(int num)
{
if(n==0)
return;
printer(--n);
printf("%d ",n);
}
| Is This Answer Correct ? | 11 Yes | 14 No |
Post New Answer View All Answers
How can I trap or ignore keyboard interrupts like control-c?
write a program that declares an array of 30 elements named "income" in the main functions. then cal and pass the array to a programmer-defined function named "getIncome" within the "getIncome" function, ask the user for annual income of 30 employees. then calculate and print total income on the screen using the following function: "void getIncome ( ai []);
How can I call system when parameters (filenames, etc.) Of the executed command arent known until run time?
What is difference between structure and union in c?
Which driver is a pure java driver
find the output? void r(int a[],int c, int n) { if(c>n) { a[c]=a[c]+c; r(a,++c,n); r(a,++c,n); } } int main() { int i,a[5]={0}; r(a,0,5); for(i=0;i<5;i++) printf("\n %d",a[i]); getch(); }
What is function what are the types of function?
Can you write the algorithm for Queue?
Explain what is meant by high-order and low-order bytes?
What is the difference between array and pointer in c?
What is difference between array and structure in c?
How #define works?
What does calloc stand for?
What is string concatenation in c?
Explain what is meant by 'bit masking'?