Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8041377
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T04:11:50+00:00 2026-06-05T04:11:50+00:00

For example could I make it type something like Hello This Is A Test

  • 0

For example could I make it type something like

"Hello"
"This"
"Is"
"A"
"Test"

With 1 second intervals in-between each new line?

Thanks,

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T04:11:52+00:00Added an answer on June 5, 2026 at 4:11 am

    Well the sleep() function does it, there are several ways to use it;

    On linux:

    #include <stdio.h>
    #include <unistd.h> // notice this! you need it!
    
    int main(){
        printf("Hello,");
        sleep(5); // format is sleep(x); where x is # of seconds.
        printf("World");
        return 0;
    }
    

    And on windows you can use either dos.h or windows.h like this:

    #include <stdio.h>
    #include <windows.h> // notice this! you need it! (windows)
    
    int main(){
        printf("Hello,");
        Sleep(5); // format is Sleep(x); where x is # of milliseconds.
        printf("World");
        return 0;
    }
    

    or you can use dos.h for linux style sleep like so:

    #include <stdio.h>
    #include <dos.h> // notice this! you need it! (windows)
    
    int main(){
        printf("Hello,");
        sleep(5); // format is sleep(x); where x is # of seconds.
        printf("World");
        return 0;
    }
    

    And that is how you sleep in C on both windows and linux! For windows both methods should work. Just change the argument for # of seconds to what you need, and insert wherever you need a pause, like after the printf as I did. Also, Note: when using windows.h, please remember the capital S in sleep, and also thats its milliseconds! (Thanks to Chris for pointing that out)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Could you tell me please, how can I make something like this: For example
Hello I want to make something like a meta language which gets parsed and
Got question. If i make query to server i use something like this: mysql_query(select
I could really use an example of this. Can anyone provide me with a
Could anyone give me example code to access the command line through VBScript? I
Is there a way to make Java Exceptions more informative? For example, take this
I often find I want to write code something like this in C#, but
Apple is giving the example , that I could make a MyColor class for
I have a Java method something like this public boolean ReadBool(String ValueName, Boolean Value)
Can a Objective c interface have more than one implementation? Example I could have

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.