what is difference between array of characters and string

Answer Posted / vedavathi

when we declare array of character it has 2 be teminated by
null,but termination by null in case of string is automatic.

Is This Answer Correct ?    93 Yes 23 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is ambagious result in C? explain with an example.

2047


How can a program be made to print the name of a source file where an error occurs?

721


What are the Advantages of using macro

675


Explain 'bit masking'?

640


Explain the red-black trees?

600






Can we declare variables anywhere in c?

569


How can I generate floating-point random numbers?

596


Explain what is the best way to comment out a section of code that contains comments?

710


write a program in C that prompts the user for today's date,tomorrow's date and display the results.Use structures for today's date,tomorrow's date and an array to hold the days for each month of the year.

4973


What is dynamic dispatch in c++?

552


Explain how do you generate random numbers in c?

612


What are the restrictions of a modulus operator?

623


Differentiate between ordinary variable and pointer in c.

611


What does static variable mean in c?

641


where are auto variables stored? What are the characteristics of an auto variable?

582