Hi Guys....I just wrote a simple C program to check if the newly installed CDT works...Though I am able to execute the C program successfully, I find the behaviour different from other IDEs. The below program should print on console first and then take inputs. However, when i run the program in CDT, it takes input first and then prints it....
#include<stdio.h>
int main()
{
char name[80];
char name2[80];
printf("hello\n");
printf("hello second\n");
scanf("%s",name);
printf("You entered %s\n",name);
scanf("%s",name2);
printf("name2=%s\n",name2);
return 0;
}
output console:
peter
parker
hello
hello second
You entered peter
name2=parker
Is there any configuration setting required to correct this behaviour? I would like to make this output behave interactively just like other C compilers/IDEs. Please advise for the same.Thanks.