Write a C program to print 1 2 3 ... 100 without using
loops?
Answer Posted / vikash kumar dixit
#include<stdio.h>
#include<conio.h>
void main()
{
int i,n;
A:
printf("%d",i);
i++;
switch(n)
{
case 100:
break();
default:goto A;
}
getch();
}
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
List the difference between a 'copy constructor' and a 'assignment operator' in C?
A SIMPLE PROGRAM OF GRAPHICS AND THEIR OUTPUT I WANT SEE WAHAT OUTOUT OF GRAPHICS PROGRAM
What happens if you free a pointer twice?
Lists the benefits of c programming language?
What is function prototype in c language?
What is const volatile variable in c?
What type of function is main ()?
What the different types of arrays in c?
write a program to copy the string using switch case?
What is bubble sort in c?
Can variables be declared anywhere in c?
When can a far pointer be used?
void main(){ int a; a=1; while(a-->=1) while(a-->=0); printf("%d",a); }
Which of the following operators is incorrect and why? ( >=, <=, <>, ==)
Tell me is null always defined as 0(zero)?