what is difference between array of characters and string
Answer Posted / afaquie ahmed siddiqui
in case character array,each character is located at
contiguous memory location,we can not print them just by the
name.we have to apply some loop opration.
BUT in case of string,a BLOCK of memory is assign to whole
string,we can print them just by string name with %s.
like...
printf("%s",name of string);
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is the main difference between calloc () and malloc ()?
What is structure packing in c?
what is the significance of static storage class specifier?
Explain how can I manipulate strings of multibyte characters?
What are different types of variables in c?
explain how do you use macro?
What are type modifiers in c?
Is register a keyword in c?
How can I read a binary data file properly?
i want to switch my career from quailty assurance engineering to development kindly guide me from which programming language its better for me to start plz refer some courses or certifications too i have an experience of 1.5 yrs in QA field.Kindly guide me
What is the equivalent code of the following statement in WHILE LOOP format?
Is c weakly typed?
Explain heap and queue.
What is wrong with this statement? Myname = 'robin';
What are the types of pointers in c?