Answer Posted / dev yadav
in for loop we should know initial &last condition.....but in while loop we only know the last condition....
ex. of for loop..for(i=0;i<=10;i++){
printf("%d",i);
}
ex. of while loop..while(i<=10){
printf("%d",i);
i++;
}
| Is This Answer Correct ? | 10 Yes | 4 No |
Post New Answer View All Answers
What is the use of header files?
provide an example of the Group by clause, when would you use this clause
How can I recover the file name given an open stream?
There seem to be a few missing operators ..
PROGRAM TO WRITE CONTENTS OF 1 FILE IN REVERSE TO ANOTHER FILE,PROGRAM TO COPY 1 FILE TO ANOTHER BY SPECIFYING FILE NAMES AS COMMAND LINE
What is difference between constant pointer and constant variable?
How important is structure in life?
Who is the main contributor in designing the c language after dennis ritchie?
What are the advantage of c language?
the question is that what you have been doing all these periods (one year gap)
Can you subtract pointers from each other? Why would you?
Can we replace the struct function in tree syntax with a union?
1) There is a singing competition for children going to be conducted at a local club. Parents have been asked to arrive at least an hour before and register their children’s names with the Program Manager. Whenever a participant registers, the Program Manager has to position the name of the person in a list in alphabet order. Write a program to help the Program Manager do this by placing the name in the right place each time the Program Manger enters a name. The Logic should be written in Data Structures?
how can f be used for both float and double arguments in printf? Are not they different types?
What is the most efficient way to store flag values?