EmbLogic's Blog

project 01:

completed assignment 1 (basics in C),and done 7 programs of second assignment(conditionals);having doubts in

1) Q10(assignment 1) integer overflow:why unsigned int always gives the maximum value(4294967295) possible for it on overflow;as char gives 0 on 1 overflow???

2)what exactly happens here::

int p=5;

printf(%d\t%d\t%d\t%d\n,++p,p++,p,++p);

One Response to project 01:

  1. zahid says:

    output will be 8 6 8 8
    p++ display thn increment
    ++p ,p increment thn final value display

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>