Search:

Type: Posts; User: 2001beibei

Search: Search took 0.01 seconds.

  1. Replies
    9
    Views
    1,753

    Thank you very much.

    Thank you very much.
  2. Replies
    9
    Views
    1,753

    Help with the code

    main()
    {
    int i=0;
    char c;
    while(1)
    {
    c='\0';
    while(c!=13&&c!=27)
    {
    c=getch();
  3. Replies
    6
    Views
    1,706

    But the solution on the book is given 24, which...

    But the solution on the book is given 24, which is 8+8+8. It is weird.
  4. Replies
    6
    Views
    1,706

    analyze the answer for the code

    main()
    {
    int i=5,j=5,p,q;
    p=(i++)+(i++)+(i++);
    q=(++j)+(++j)+(++j);
    printf("%d,%d,%d,%d",p,q,i,j);
    }


    I ran the program and it is showed 22 for q. How can I get 22 for q? Thank you very...
  5. Replies
    2
    Views
    1,854

    Yeah, I do not know ctrl-D. Thank you, Mats.

    Yeah, I do not know ctrl-D. Thank you, Mats.
  6. Replies
    2
    Views
    1,854

    New learner Help!

    #include <stdio.h>

    int main(void)
    {
    int blanks, tabs, newlines;
    int c;
    int done = 0;
    int lastchar = 0;

    blanks = 0;
Results 1 to 6 of 6