Search:

Type: Posts; User: Bayint Naung

Search: Search took 0.01 seconds.

  1. Replies
    7
    Views
    1,473

    printf("now %d charas print \n",printf("%d",a)); ...

    printf("now %d charas print \n",printf("%d",a));
    There you are printing a.
  2. Replies
    7
    Views
    1,473

    b = &b[0] // in expression *b =...

    b = &b[0] // in expression
    *b = *&b[0];
    *& cancel
    *b = b[0];
    So you are getting first element of b. which is of type int. Why don't you go and try out and listen to what compiler...
  3. Replies
    7
    Views
    1,473

    Still don't get it? Pay attention to the line. ...

    Still don't get it? Pay attention to the line.

    scanf("%d%d",&a,&b);
    Enable compiler warning.
  4. Replies
    7
    Views
    1,473

    47th post? Still no code tag? Why are you using...

    47th post? Still no code tag?
    Why are you using g++. It's C++ compiler.



    int a,b[100];

    is b an int?
    gcc -Wall will give you warning for that. Always enable warning and pay attention to...
Results 1 to 4 of 4