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
Difference between Shallow copy and Deep copy?
How is = symbol different from == symbol in c programming?
If you know then define #pragma?
Write an algorithm for implementing insertion and deletion operations in a singly linked list using arrays ?
Are pointers integers in c?
How can I manipulate individual bits?
Find MAXIMUM of three distinct integers using a single C statement
What’s a signal? Explain what do I use signals for?
What is the difference between malloc() and calloc() function in c language?
What are header files in c?
Why c is called a mid level programming language?
What is the main difference between calloc () and malloc ()?
What is volatile, register definition in C
What is main function in c?
what is a constant pointer in C