program in c to print 1 to 100 without using loop
Answer Posted / madhavi
main()
{
int i=1;
LOOP:
printf("%d\t",i);
i++;
if(i<=100)
goto LOOP;
}
Is This Answer Correct ? | 6 Yes | 0 No |
Post New Answer View All Answers
why programs in c are running with out #include
How can a program be made to print the name of a source file where an error occurs?
When should the const modifier be used?
What is the difference between strcpy() and memcpy() function in c programming?
All technical questions
Write a C program linear.c that creates a sequence of
processes with a given length. By
sequence it is meant that each created process has exactly
one child.
Let's look at some example outputs for the program.
Here the entire process sequence consists of process 18181:
Sara@dell:~/OSSS$ ./linear 1
Creating process sequence of length 1.
18181 begins the sequence.
An example for a sequence of length three:
Sara@dell:~/OSSS$ ./linear 3
Creating process sequence of length 3.
18233 begins the sequence.
18234 is child of 18233
18235 is child of 18234
........ this is coad .... BUt i could not compleate it .....:(
#include
What is the function of volatile in c language?
Is c++ based on c?
What is #define used for in c?
What are the general description for loop statement and available loop types in c?
What are types of preprocessor in c?
If i have an array 0 to 99 i.e,(Size 100) I place the values 1 to 100 randomly like a[0]=29,a[1]=56 upto array[99].. the values are only between 1 to 100. getting the array values by using scanf.. If i entered one wrong element value line a[56]=108. how can i find it.. and also how to find the missing value in 1 to 100.. and i want to replace the missing values.. any one of them know please post your answer..
What is the difference between the expression “++a” and “a++”?
What is the role of && operator in a program code?
Explain what is gets() function?