Search:

Type: Posts; User: Bayint Naung

Search: Search took 0.01 seconds.

  1. Nothing to be amazed. It works since scanf() %d...

    Nothing to be amazed.
    It works since scanf() %d stops when encountering letter on next line, and it pushes back (ungetc()). the character.
    If next line is allowed to start with number(not OP...
  2. Is it? But i don't think so.

    Is it? But i don't think so.
  3. Read a word. scanf %s does that. Depending on...

    Read a word. scanf %s does that.
    Depending on the word(RUN,SET), you know how many more input to read.

    Eg.


    char command[21];
    while( scanf("%20s",command) != EOF ) {
    if(...
Results 1 to 3 of 3