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 8592927
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T23:52:09+00:00 2026-06-11T23:52:09+00:00

Here is my simple code : #include <stdio.h> int main(){ printf(Hello new world\n); char

  • 0

Here is my simple code :

 #include <stdio.h>

    int main(){
        printf("Hello new world\n");
        char c[10];
        scanf("%s",c);
        printf("%s",c);
        return 0;
    }

Normal, We will see: Hello new world, after that, we input some string, and C will print this string for us.

But in my eclipse CDT, when running, console is empty. I must input a string first, for example, stackoverflow. after that, my program will print :

Hello new world
stackoverflow

I don’t know why happen, please teach me to fix this.

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-11T23:52:10+00:00Added an answer on June 11, 2026 at 11:52 pm

    It’s something that developers of Eclipse do not consider for a bug.

    You can read more about this “bug” here:
    https://bugs.eclipse.org/bugs/show_bug.cgi?id=173732

    Anyway… Ugly but working solution is to put

    fflush(stdout);
    

    after every printf() and puts().

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

Sidebar

Related Questions

I have written a simple Hello World program. #include <stdio.h> int main() { printf(Hello
Here is my simple code ... #include<stdio.h> int main() { int i=5; printf(%d %d
I have a simple problem; Here is the code : #include<stdio.h> main(){ int input;
Here's a simple C file: #include <stdio.h> #include <stdlib.h> int main() { printf(hi there!\n);
I got the following simple C++ code: #include <stdio.h> int main(void) { ::printf(\nHello,debugger!\n); }
#include <stdio.h> int main() { int m,n; scanf(%d %d,&m,&n); char ar[m][n]; char buf[n]; int
here's a simple and short code I've been trying to run: #include <stdio.h> int
I wrote a simple url parser using strtok(). here's the code #include <stdio.h> #include
my sample code is here include 'simple_html_dom.php'; function get_all_links($url){ global $host; $html = new
Here is the super simple code i have: HtmlDocument htmlDoc = new HtmlDocument(); htmlDoc.OptionWriteEmptyNodes

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.