this is the o/p;Code:#include <stdio.h> int main() { char c; scanf("%c",&c); printf("%c\n",c); scanf(" %c",&c); //there is a space (" %c" printf("%c\n",c); return 0; }
a
a
b
b
case 2:
o/p:Code:#include <stdio.h> int main() { char c; scanf("%c",&c); printf("%c\n",c); scanf("%c",&c); /////there is no space printf("%c\n",c); return 0; }
a
a
program terminates...doesn't ask for second input ?
help me ....