User Profile
Collapse
-
Doubt in structure bitfields
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...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); -
-
why it is not flushing the output buffer when we are giving the printf statement.Leave a comment:
-
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? -
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. -
Stack & Unconditional Statements
What will happen to the stack in 'C' while an unconditional statement occurs.
No activity results to display
Show More
Leave a comment: