what is difference between array of characters and string

Answer Posted / saumil

the compiler automatically puts a null character when we
insert a string...for eg "abc" for the compiler is "abc\0".
but for a array of characters we need to assign a place for
it..for eg a[15] contains 14 characters and a null
character('\0').

Is This Answer Correct ?    24 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Tell me what is the purpose of 'register' keyword in c language?

614


What is d scanf?

583


how to write a c program to print list of fruits in alpabetical order?

1785


Why pointers are used?

628


What is wrong with this program statement?

604






Why doesnt long int work?

606


What is assert and when would I use it?

573


Do you know the use of fflush() function?

592


What is the value of h?

587


What are formal parameters?

652


I completed my B.tech (IT). Actually I want to develop virtual object that which will change software technology in the future. To develop virtual object what course I have to take. can I any professor to help me.

1735


what does static variable mean?

647


When is a null pointer used?

633


What are categories used for in c?

560


What language is lisp written in?

611