Home
Recent Q&A
Java
Cloud
JavaScript
Python
SQL
PHP
HTML
C++
Data Science
DBMS
Devops
Hadoop
Machine Learning
Azure
Blockchain
Devops
Ask a Question
Differentiate between for loop and a while loop in C Language? What are it uses in C Language?
Home
C Plus Plus
Differentiate between for loop and a while loop in C Language? What are it uses in C Language?
0
votes
asked
Mar 10, 2020
in
C Plus Plus
by
rahuljain1
Differentiate between for loop and a while loop in C Language? What are it uses in C Language?
#c-language-loop
#c-language-while-loop
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Mar 10, 2020
by
SakshiSharma
For executing a set of statements fixed number of times we use for loop while when the
number of iterations to be performed is not known in advance we use while loop.
Related questions
0
votes
Q: What is the difference between while and do while loop? Explain with examples.
asked
Jun 9, 2020
in
C Plus Plus
by
Robindeniel
#c-loops
#c-while-loop
#c-do-loop
0
votes
Q: What are the uses of a pointer in C Language?
asked
Mar 10, 2020
in
C Plus Plus
by
rahuljain1
#c-language-pointer0use
0
votes
Q: What are the general description for loop statements and available loop types in C?
asked
Mar 17, 2020
in
C Plus Plus
by
SakshiSharma
#c-language-statements
0
votes
Q: What is the correct code to have the following output in C using nested for loop?
asked
Mar 17, 2020
in
C Plus Plus
by
SakshiSharma
#c-language-code
0
votes
Q: What are loops and how can we create an infinite loop in C?
asked
Jan 11
in
C Plus Plus
by
GeorgeBell
c-interview-questions-answers
0
votes
Q: What is the code in a while loop that returns the output of the given code?
asked
Mar 17, 2020
in
C Plus Plus
by
SakshiSharma
0
votes
Q: What are the differences between malloc () and calloc () in C Language?
asked
Mar 10, 2020
in
C Plus Plus
by
rahuljain1
#c-language-calloc
c-language-malloc
calloc-vs-malloc
malloc-vs-calloc
0
votes
Q: What are the differences between structures and arrays in C Language?
asked
Mar 10, 2020
in
C Plus Plus
by
rahuljain1
#structure-vs-array
0
votes
Q: What are the differences between structures and union in C Language?
asked
Mar 10, 2020
in
C Plus Plus
by
rahuljain1
#union-vs-structure
0
votes
Q: State the difference between delete and delete[] in C Language
asked
Jun 11, 2020
in
C Plus Plus
by
Robindeniel
#delete-vs-delete
...