difference between string and array?

Answers were Sorted based on User's Feedback



difference between string and array? ..

Answer / manju

string: its an array of any number of characters:

array:"its an collection of similar data items"-in the sense
ats collection of not only charecters even we can store
numbers.....

Is This Answer Correct ?    11 Yes 1 No

difference between string and array? ..

Answer / teja

array : array is a collection of similar datatypes like
integer types or character types
string : string is a collection of characters of any size

Is This Answer Correct ?    2 Yes 1 No

difference between string and array? ..

Answer / 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

difference between string and array? ..

Answer / paramesh

a string is collection of characters but an array is
collection of similar data types

Is This Answer Correct ?    1 Yes 0 No

difference between string and array? ..

Answer / guest

string is a sequence of characters where as array is
collections of differnt strings which are having same data type.

Is This Answer Correct ?    0 Yes 0 No

difference between string and array? ..

Answer / sonu

string:string is a collection of similar datatype,like
"sneha".
array:an array is a collection of different datatype,like
a[10].we can store charactor value as well as integer.

Is This Answer Correct ?    5 Yes 7 No

Post New Answer

More C Interview Questions

what is the difference between these initializations? Char a[]=”string”; Char *p=”literal”; Does *p++ increment p, or what it points to?

4 Answers  


Explain Basic concepts of C language?

0 Answers   EXL,


Describe dynamic data structure in c programming language?

0 Answers  


Find string palindrome 10marks

5 Answers   Honeywell, Infosys, Riktam, Roland,


main is a predefined or user define function if user defined why? if predefined whay?

12 Answers   TCS,






What is difference between scanf and gets?

0 Answers  


Can anyone help me with this please? Need to print the below values.. Thanks 1 1 2 1 2 3 1 2 3 4

3 Answers  


Difference between null pointer and dangling pointer?

7 Answers   GE, Wipro,


What is the right way to use errno?

0 Answers  


What are pointers really good for, anyway?

0 Answers  


Diff between for loop and while loop?

2 Answers   TCS,


Is int a keyword in c?

0 Answers  


Categories