how many times does the loop iterated ?
for (i=0;i=10;i+=2)
printf("Hi\n");
Answer Posted / sai
It doesn't has condition in the loop to move on, and here i
is of type what?, not mentioned.
This loop doesn't executes with this condition, it should
be told i<= or i>= depending on the requirement.
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
Is printf a keyword?
Why #include is used in c language?
What is the use of putchar function?
What is .obj file in c?
i want to know the procedure of qualcomm for getting a job through offcampus
Which node is more powerful and can handle local information processing or graphics processing?
In C, What is the #line used for?
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
Can a variable be both const and volatile?
write a program to input 10 strings and compare without using strcmp() function. If the character of one string matches with the characters of another string , sort them and make it a single string ??? example:- str1="Aakash" st2="Himanshu" str="Uday" output:- Aakashimanshuday (please post the answer as quickly as possible)
What is the use of the function in c?
Why is it important to memset a variable, immediately after allocating memory to it ?
Explain what is a 'locale'?
How can I handle floating-point exceptions gracefully?
How can my program discover the complete pathname to the executable from which it was invoked?