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 sizeof c?

0 Answers  


What is the process to create increment and decrement stamen in c?

0 Answers  


general for is %wd,f-d; in this system "w" means a) 'w' represent total width of digits b) 'w' represent width which includes the digits before,after decimal place and the decimal point c) 'w' represent width which includes the digits before only d) 'w' represent width after decimal place only

0 Answers  


How can draw a box in cprogram without using graphics.h header file & using only one printf(); ?

4 Answers   NIIT,


What is the right way to use errno?

0 Answers  


struct tag{ auto int x; static int y; };main() { struct tag s; s.x=4; s.y=5; printf(“%d”,s.x); }

2 Answers   Vector,


What are enums in c?

0 Answers  


What is a constant?

0 Answers  


how to print value of e(exp1)up to required no of digits after decimal?

1 Answers  


without using control structures and control structures find the max and min of given 2 nos

1 Answers   HCL,


What is typedef struct in c?

0 Answers  


Differentiate between full, complete & perfect binary trees.

0 Answers  


Categories