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
What is calloc in c?
A program is required to print your biographic information including: Names, gender, student Number, Cell Number, line of study and your residential address.
How can I send mail from within a c program?
How can I access an I o board directly?
What is a lvalue
What is function in c with example?
What is function prototype?
What is variable declaration and definition in c?
Should I use symbolic names like true and false for boolean constants, or plain 1 and 0?
Difference between constant pointer and pointer to a constant.
What is the purpose of macro in C language?
Write a program to maintain student’s record. Record should
not be available to any unauthorized user. There are three
(3) categories of users. Each user has its own type. It
depends upon user’s type that which kind of operations user
can perform. Their types and options are mentioned below:
1. Admin
(Search Record [by Reg. No or Name], View All Records,
Insert New Record, Modify Existing Record)
2. Super Admin
(Search Record [by Reg. No or Name], View All Records,
Insert New Record, Modify Existing Record, Delete Single Record)
3. Guest
(Search Record [by Reg. No or Name], View All Records)
When first time program runs, it asks to create accounts.
Each user type has only 1 account (which means that there
can be maximum 3 accounts). In account creation, following
options are required:
Login Name: <6-10 alphabets long, should be unique>
Password: <6-10 alphabets long, should not display
characters when user type>
Confirm Password:
What are extern variables in c?
any C program contains only one function, it must be a) void () b) main () c) message () d) abc ()
Why c language?