program in c to print 1 to 100 without using loop
Answer Posted / nishikant kamble
#include<stdio.h>
int main()
{
int i=1;
suhas:
printf("%d\t",i);
i++;
if(i==101)
{
exit(1);
}
goto suhas;
}
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
What does do in c?
What is pragma c?
What are the benefits of c language?
Are comments included during the compilation stage and placed in the EXE file as well?
What are the different types of linkage exist in c?
Are pointers integers in c?
Do you have any idea about the use of "auto" keyword?
What is the use of function overloading in C?
Write a function expand(s1,s2) that expands shorthand notations like a-z in the string s1 into the equivalent complete list abc...xyz in s2 . Allow for letters of either case and digits, and be prepared to handle cases like a-b-c and a-z0-9 and -a-z. z-a:zyx......ba -1-6-:-123456- 1-9-1:123456789987654321 a-R-L:a-R...L a-b-c:abbc
What is the translation phases used in c language?
How do you declare a variable that will hold string values?
What do you understand by normalization of pointers?
What is the size of enum in bytes?
What is this infamous null pointer, anyway?
What are the types of unary operators?