This should work....
Code:
#include<stdio.h>
#include<conio.h>
void main()
{
clrscr();
char a,b,c;
printf("Enter three character\n");
scanf("%c",&a);
scanf("%c",&b);
scanf("%c",&c);
printf("The characters entered are %c %c %c", a,b,c);
getch();
}
No need to upgrade to any of the development tools mentioned by salem! I guess u r just starting up with C....its fine to use any compiler you wish.....it will satisfy ur purpose, more than enough. Though latest compilers are recomended.
You can use Borland or Dev C++ compilers.
There is no mistake in "void main()" but its generally found that programers prefer "int main()" and manually return a value from main() as ur program ends. Zero is the normal return value if there were no errors or ur program terminates normally; otherwise some other integers are returned to signify the error.
Just go ahead, dont b afraid and happy programming!!!
@Salem
From which country r u from???
And for what the hell shall he install all those heavy weight development tools when he is just a starter?????
Win7 does not create problems in such simple things.....!!!!