User Profile

Collapse

Profile Sidebar

Collapse
sureshk
sureshk
Last Activity: Dec 21 '06, 08:45 PM
Joined: Oct 8 '06
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • sureshk
    replied to Doubt in structure bitfields
    in C
    Thank you verymuch.
    See more | Go to post

    Leave a comment:


  • sureshk
    started a topic Doubt in structure bitfields
    in C

    Doubt in structure bitfields

    Code:
    struct date{
             unsigned short int day:5;
             unsigned short int mon:4;
             unsigned short int year:12;
    }dt;
    dt.day=12;
    dt.mon=5;
    dt.year=2000;
    printf("%d:%d:%d",dt.day,dt.mon,dt.year);
    In the above code the members of the structure are bitfields. we are trying to print those values using %d. "%d" is actually used to retrieve an integer of 2 or 4bytes...
    See more | Go to post

  • sureshk
    replied to A Problem in Program
    in C
    Thank you verymuch..
    See more | Go to post

    Leave a comment:


  • sureshk
    replied to A Problem in Program
    in C
    why it is not flushing the output buffer when we are giving the printf statement.
    See more | Go to post

    Leave a comment:


  • sureshk
    started a topic A Problem in Program
    in C

    A Problem in Program

    Plase look at this programme.

    int i=0;
    while(i<30){
    if(i==20)
    continue;
    prinf("%d ",i++);
    }

    As for the programme the i value should be print upto 19 and then it will have to be in an infinite loop, but this programme dosen't prints any value. why?
    See more | Go to post

  • sureshk
    started a topic Doubt in Command Line argument in 'C'
    in C

    Doubt in Command Line argument in 'C'

    In 'C' the signature of any function's prototype and the definiton of the function should match.But for function main may recieve the arguments or may not recieve the arguments 'It is optional'. How it is possible? and what is it's prototype. As well as the loop function 'FOR' also may or may not recieve the arguments that is also optional. Please clear this doubt.
    See more | Go to post

  • sureshk
    started a topic Stack & Unconditional Statements
    in C

    Stack & Unconditional Statements

    What will happen to the stack in 'C' while an unconditional statement occurs.
    See more | Go to post
No activity results to display
Show More
Working...