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??
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??
EmbLogic Research & Competency Development Labs
Phone: +91 9818467776, 8527567776, 9650467776
Email: info@emblogic.com
Copyright © EmbLogic Embedded Technologies Pvt. Ltd.
size of char is 1 byte only and int and float is 4 bytes
in C the type of a character constant like ‘a’ is actually a int so size is 4 byte
when u write sizeof(‘d’)….’d’ is replaced with 68 in decimal i.e. int…and the size of int is 4 byte