Write a C program to print 1 2 3 ... 100 without using
loops?
Answer Posted / professor uday kumar bhupathi
void main(int n)
{
if(n==0)
return;
main(--n);
printf("%d ",n);
getch();
}
| Is This Answer Correct ? | 12 Yes | 16 No |
Post New Answer View All Answers
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 the sizeof () a pointer?
When a c file is executed there are many files that are automatically opened what are they files?
What is string length in c?
What are compound statements?
One of the Institutes contains 5 student groups. Every group contains 4 students. Institute wants to store student group’s details in array. Group should contain group member’s details (name and registration number and age), project name, and mark of the group.
How do you redirect a standard stream?
How can a string be converted to a number?
Is c easy to learn?
Explain null pointer.
How do I determine whether a character is numeric, alphabetic, and so on?
What are the different file extensions involved when programming in C?
Is javascript written in c?
console I/O functions means a) the I/O operations done on disk b) the I/O operations done in all parts c) the input given through keyboard is displayed VDU screen d) none of the above
What is the hardest programming language?