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

What are the advantages of using Unions?

640


What is modifier & how many types of modifiers available in c?

600


What is the advantage of using #define to declare a constant?

614


When should you not use a type cast?

651


What will the code below print when it is executed?   int x = 3, y = 4;         if (x = 4)                 y = 5;         else                 y = 2;         printf ("x=%d, y=%d ",x,y);

1343






find the sum of two matrices and WAP for it.

625


Where can I get an ansi-compatible lint?

634


What are types of functions?

557


which is an algorithm for sorting in a growing Lexicographic order

1390


what is the format specifier for printing a pointer value?

609


Tell me what is null pointer in c?

604


Write a program in c to replace any vowel in a string with z?

680


Using which language Test cases are added in .ptu file of RTRT unit testing???

3577


i have to apply for rbi before that i need to know the the syllabus for the entrance questions. whethet it may be aps or techinical

1833


Write a c program to build a heap method using Pointer to function and pointer to structure ?

4169