Write a C program to print 1 2 3 ... 100 without using
loops?
Answer Posted / vivek
void main()
{
int i=1;
if(i<=100)
printf("%d",i);
continue;
getch();
}
| Is This Answer Correct ? | 6 Yes | 2 No |
Post New Answer View All Answers
What are reserved words with a programming language?
#include main() { int *p, *c, i; i = 5; p = (int*) (malloc(sizeof(i))); printf(" %d",*p); *p = 10; printf(" %d %d",i,*p); c = (int*) calloc(2); printf(" %d ",*c); }
Tell me when would you use a pointer to a function?
What are the 5 elements of structure?
Is there a way to compare two structure variables?
Why isnt there a numbered, multi-level break statement to break out
Explain what is the benefit of using #define to declare a constant?
‘ C’ PROGRAME TO SHOW THE TYPE OF TRANGLE BY ACCEPTING IT’S LENGTH .
which is conditional construct a) if statement b) switch statement c) while/for d) goto
Why & is used in scanf in c?
What is array of pointers to string?
What is the most efficient way to store flag values?
Explain b+ tree?
What are linked lists in c?
How can I access an I o board directly?