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

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

AnkitTech
Beginner
221 Views

//While loop

while (condition)

{

statements

}

 

//Do-while loop

do{

statements

}

while(condition);

0 Kudos
1 Reply
AlHill
Super User
212 Views

@AnkitTech What is the point of these code snipits?

 

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

Reply