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

write a program of palindrome(madam=madam) using pointer?

5 Answers   L&T,


How can a program be made to print the line number where an error occurs?

0 Answers  


write a program to find a given no. is divisible by 3 or not without using any arthimetic operators?

3 Answers   Broadcom, TCS,


Explain Linker and Loader

5 Answers  


What is c method?

0 Answers  






What are the modifiers available in c programming language?

0 Answers  


What is extern keyword in c?

0 Answers  


c program to print a name without using semicolon

9 Answers   TCS, Wipro,


What are the features of the c language?

0 Answers  


Explain how can you determine the size of an allocated portion of memory?

0 Answers  


"%u" unsigned integer print the a) address of variable b) value of variable c) name of a variable d) none of the above

0 Answers  


What are called c variables?

0 Answers  


Categories