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
What is default value of global variable in c?
Create a structure to specify data on students as given below: Roll number, Name, Department, Course, and Year of joining. Assume that there are not more than 450 students in the collage. (a) Write a function to print the names of all students who joined in the last 3 years. (b) Write a function to print the data of a student whose roll numbers are divisible by 4.
What is build process in c?
How can I convert a number to a string?
Write the program that calculates and prints the average of several integers. Assume that the last value read is sentinel 9999.
write a program to copy the string using switch case?
Is it possible to have a function as a parameter in another function?
What is function prototype in c language?
What does a pointer variable always consist of?
Who developed c language?
Write a C++ program to generate 10 integer numbers between - 1000 and 1000, then store the summation of the odd positive numbers in variable call it sum_pos, then find the maximum digit in this variable regardless of its digits length.
Explain what is a pragma?
What is external variable in c?
What is equivalent to ++i+++j?
main(){char *str;scanf("%s",str);printf("%s",str); }The error in the above program is: a) Variable 'str' is not initialised b) Format control for a string is not %s c) Parameter to scanf is passed by value. It should be an address d) none