Hi Naveen,

 just provide a space before %c and it will work.

int x;
int y;
char z;

scanf("%d",&x);
scanf("%d",&y);
scanf(" %c",&z);

Regards,
Prashant

On Nov 22, 2007 1:16 PM, naveen babu <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
>
> in LINUX i have return C program as
>
>  int x;
>  int y;
>  char z;
>
>  scanf("%d",&x);
>  scanf("%d",&y);
>  scanf("%c",&z);
>
>  problem is , it is not taking the last scanf .i.e. char value "z"
>  control is not waiting for input it is coming out of the program exeecution
>  please help me out in this
>
>  Get the freedom to save as many mails as you wish. To know how, go to
> http://help.yahoo.com/l/in/yahoo/mail/yahoomail/tools/tools-08.html
>
>  [Non-text portions of this message have been removed]
>
>  

Reply via email to