Write a program to produce the following output:
1
2
3
4
5
6
7
8
9
10
Answer Posted / alish agrwal
#include<stdio.h>
#include<conio.h>
void main()
{ int i;
for(i=1;i<=10;i++)
printf("\n",i);
getch();
}
| Is This Answer Correct ? | 29 Yes | 14 No |
Post New Answer View All Answers
The difference between printf and fprintf is ?
write a program to convert a expression in polish notation(postfix) to inline(normal) something like make 723+* (2+3) x 7 (not sure) just check out its mainly printing expression in postfix form to infix.
What is a void pointer? When is a void pointer used?
how do you write a function that takes a variable number of arguments? What is the prototype of printf () function?
How is a macro different from a function?
How can a program be made to print the name of a source file where an error occurs?
Explain how can a program be made to print the line number where an error occurs?
What is the use of in c?
7-Given an index k, return the kth row of the Pascal's triangle. For example, when k = 3, the row is [1,3,3,1]. For reference look at the following standard pascal’s triangle.
What is conio h in c?
Are global variables static in c?
What are type modifiers in c?
How is a null pointer different from a dangling pointer?
What is use of bit field?
1) There is a singing competition for children going to be conducted at a local club. Parents have been asked to arrive at least an hour before and register their children’s names with the Program Manager. Whenever a participant registers, the Program Manager has to position the name of the person in a list in alphabet order. Write a program to help the Program Manager do this by placing the name in the right place each time the Program Manger enters a name. 2) the Event Manager has to send participants to the stage to perform in the order in which they registered. Write a program that will help the Event Manager know who to call to the stage to perform. The Logic should be in Data Structures