Intel® C++ Compiler
Support and discussions for creating C++ code that runs on platforms based on Intel® processors.
7724 Discussions

What is the syntax for while and do-while loop for C?

AnkitTech
Beginner
208 Views

//While loop

while (condition)

{

statements

}

 

//Do-while loop

do{

statements

}

while(condition);

0 Kudos
1 Reply
AlHill
Super User
199 Views

@AnkitTech What is the point of these code snipits?

 

Doc (not an Intel employee or contractor)
[Windows 11 is the new Vista]

Reply