difference between string and array?

Answer Posted / gnaneshwar

In the C programming language a string is actually the same as an array of characters. The last character in a C string is a zero byte which indicates the end of the string.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why pointers are used in c?

755


write a program to copy the string using switch case?

2620


Explain union.

904


What language is windows 1.0 written?

778


What is c standard library?

907


Why we not create function inside function.

1970


Explain how to reverse singly link list.

836


What is the benefit of using an enum rather than a #define constant?

937


Explain About fork()?

845


What are derived data types in c?

809


How do I round numbers?

784


How can I remove the leading spaces from a string?

841


What are the different types of pointers used in c language?

791


int i[2], j; int *pi;i[0] = 1; i[1] = 5; pi = i; j = *pi + 1 + *(pi + 1)Value of j after execution of the above statements will be a) 7 b) 6 c) 4 d) pointer

850


write a c program to find the sum of five entered numbers using an array named number

1869