EmbLogic's Blog

what is argc and argv used in main()???

by using sizeof i am getting char size of 1 but size of a char like ‘D’ is 4 when declaired under a char variable…why??

3 Responses to

  1. samta says:

    size of char is 1 byte only and int and float is 4 bytes

  2. puru says:

    in C the type of a character constant like ‘a’ is actually a int so size is 4 byte

  3. vikram sharma says:

    when u write sizeof(‘d’)….’d’ is replaced with 68 in decimal i.e. int…and the size of int is 4 byte

Leave a Reply to vikram sharma Cancel 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>