Intel® C++ Compiler
Community support and assistance for creating C++ code that runs on platforms based on Intel® processors.
7956 Discussions

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

AnkitTech
Beginner
359 Views

//While loop

while (condition)

{

statements

}

 

//Do-while loop

do{

statements

}

while(condition);

0 Kudos
1 Reply
AlHill
Super User
350 Views

@AnkitTech What is the point of these code snipits?

 

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

0 Kudos
Reply