example : char a[]=”a”; this is possible but not efficient because we have other method to assign character const as shown below:
char c=’a’;
example : char a[]=”a”; this is possible but not efficient because we have other method to assign character const as shown below:
char c=’a’;
EmbLogic Research & Competency Development Labs
Phone: +91 9818467776, 8527567776, 9650467776
Email: info@emblogic.com
Copyright © EmbLogic Embedded Technologies Pvt. Ltd.
Please explain the question with some details.
kamran ,i thought its now enough for comprehension
Every string in C is terminated with a nul character. Therefore for a single character it consumes 2 bytes of memory, 1 for ‘a’ character and 1 for nul character . This in turn is not efficient in terms of memory.