Search:

Type: Posts; User: devilofwar

Search: Search took 0.01 seconds.

  1. Thank you people

    Thank you people
  2. question on C aptitude (static var and recursion)

    #include <stdio.h>

    int main()
    {

    int t;
    t= func(5);
    printf("Hello world!\n %d",t);
    return 0;
    }
  3. Replies
    5
    Views
    1,056

    and j + 11 wont have an effect on the stmts that...

    and j + 11 wont have an effect on the stmts that follow . Right ? cause its not modifying anything
  4. Replies
    5
    Views
    1,056

    sorry now answer the question

    sorry
    now answer the question
  5. Replies
    5
    Views
    1,056

    Another question on C aptitude

    i>j?i=10;j+=11

    Here we get an L value error since C treats this as (i>j?i=10;j) +=10
    thats OK

    BUT
    if this is the case

    i>j?i=10;j(operator with higher precedence than cond)11;
    what will...
  6. Replies
    4
    Views
    910

    oh So thats the difference .. Thanks a lot

    oh So thats the difference ..
    Thanks a lot
  7. Replies
    4
    Views
    910

    i think the evaluation i=10 will return true ie 1

    i think the evaluation i=10 will return true ie 1
  8. Replies
    4
    Views
    910

    question on C aptitude

    hey can anyone explain me the behavior of


    printf("%d", i=10);

    should it not print 1 ?
  9. in this case i =-2 j= 2 and k= 1 and yes the...

    in this case i =-2 j= 2 and k= 1

    and yes the link provided above was helpful !!
  10. but here why is && not evaluated before the ||...

    but here why is && not evaluated before the || operator ? should the && be evaluated and then ||
  11. even i thought of this explanation But have u...

    even i thought of this explanation But have u considered the fact that && gets evaluated first and then || gets evaluated
    Precedence table frm anywhere says this
  12. even i thought of this explanation But have u...

    even i thought of this explanation But have u considered the fact that && gets evaluated first and then || gets evaluated
    Precedence table frm anywhere says this
  13. no ur wrong cause the ans will depend on the...

    no ur wrong cause the ans will depend on the evaluation order of this stmt which is unclear to me
  14. what will be the output of this code snippet

    int main(){
    int i = -3,j=2,k=0,m;
    m=++i||++j&&++k;
    printf("%d%d%d%d",i,j,k,m);
    return 0;
    }


    the ans is -2 2 0 1
  15. Replies
    2
    Views
    1,142

    thank you :::DDD

    thank you :::DDD
  16. Replies
    2
    Views
    1,142

    A question on C aptitude

    As we know that the nature of the expression

    a[i]=i++; is undefined. Ref K&R

    What is the nature of
    i+=i++;
    will this be undefined ?
  17. Replies
    6
    Views
    1,107

    Thanx a lot guys And can anyone guide me to...

    Thanx a lot guys
    And can anyone guide me to some good MCQ book or online resource.
    Q's related to 'Whats the output'
  18. Replies
    6
    Views
    1,107

    r u having a 16 bit compiler?

    r u having a 16 bit compiler?
  19. Replies
    6
    Views
    1,107

    need some advice

    Hey all

    Can anyone suggest me some material (Advanced level) which contains many Multiple choice Q's on outputs or concepts (in C) or even MCQ's on Data structures using C.

    Also

    O/p
    ...
  20. Replies
    2
    Views
    1,489

    thanx a lot

    thanx a lot
  21. Replies
    2
    Views
    1,489

    confused with new type of int definition

    saw this code somewhere



    int i=1022/3>>2;
    printf("%d",i);


    now what will be the output
Results 1 to 21 of 21