Sleep function in C/C++ programming - Code Ambition

Опубликовано: 22 Июнь 2026
на канале: Code Ambition 2K
4,356
40

sleep( ) function is used to suspend the execution of the current program for the specified number of second . In the parameter of the sleep( ) function , we pass seconds instead of macro-second as we used to pass in the delay( ) function.sleep( ) function is also found in the "dos.h" header file.
SYNTAX :-

void sleep(int );

THANKS FOR WATCHING
#CodeAmbition
#delay()
#sleep()