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 are categories used for in c?
What is the purpose of 'register' keyword in c language?
a program that performs some preliminary processing in C, it acts upon certain directives that will affect how the compiler does its work a) compiler b) loader c) directive d) preprocessor
how to construct a simulator keeping the logical boolean gates in c
How macro execution is faster than function ?
Differentiate between #include<...> and #include '...'
Who developed c language?
What is the basic structure of c?
Explain what are the advantages and disadvantages of a heap?
write a program that types this pattern: 12345678987654321 12345678 87654321 1234567 7654321 123456 654321 12345 54321 1234 4321 123 321 12 21 1 1
What is structure in c language?
A variable that is defined in a specified portion of a program but can be used throughout the program a) global variable b) local variable c) character d) none
What is %lu in c?
What are c identifiers?
What is use of bit field?