Search:

Type: Posts; User: lazy_hack

Search: Search took 0.00 seconds.

  1. Replies
    5
    Views
    3,527

    character const..

    good that i asked. I couldnt have figured out that one. Man, why to keep a character const. an integer! I think thats why they developed C++ to remove its faults!!!!!
  2. Replies
    5
    Views
    3,527

    dubious sizeof operator

    code:

    printf("%d %d %d",sizeof(3),sizeof('3'),sizeof("3"));






    ans:
  3. Replies
    11
    Views
    3,474

    thanks for the explanation... "the result of...

    thanks for the explanation...

    "the result of the conditional operator is not an lvalue" line is the crux i believe...

    the code was from test ur c skills book....just anther intrsting book..
  4. Replies
    11
    Views
    3,474

    Help in assigment stmt.

    full program:


    main()
    {
    int a=10,b,c;
    ((a<20)?b:c)=30;
    printf("%d",b);
    }
  5. Replies
    11
    Views
    3,474

    expression evaluation

    Hi,


    Although the expression *((a<20)?&b:&c)=30; works but

    ((a<20)?b:c)=30 gives

    error:...
Results 1 to 5 of 5