Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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 are the rules for the identifier?

0 Answers  


differentiate between const char *a; char *const a; and char const *a;

2 Answers   College School Exams Tests, HCL, TCS,


Why is it important to memset a variable, immediately after allocating memory to it ?

0 Answers  


What is mean by data types in c?

0 Answers  


You have an int array with n elements and a structure with three int members. ie struct No { unsigned int no1; unsigned int no2; unsigned int no3; }; Point1.Lets say 1 byte in the array element is represented like this - 1st 3 bits from LSB is one number, next 2 bits are 2nd no and last 3 bits are 3rd no. Now write a function, struct No* ExtractNos(unsigned int *, int count) which extracts each byte from array and converts LSByte in the order mentioned in point1.and save it the structure no1, no2, no3. in the function struct No* ExtractNos(unsigned int *, int count), first parameter points to the base address of array and second parameter says the no of elements in the array. For example: if your array LSB is Hex F7 then result no1 = 7, no2 = 2, no3 = 7. In the same way convert all the elements from the array and save the result in array of structure.

2 Answers   Qualcomm,


What are the advantages and disadvantages of pointers?

0 Answers  


How to create struct variables?

0 Answers  


how can use subset in c program and give more example

0 Answers  


code for concatination of 2 strings with out using library functions?

3 Answers  


write a own function for strstr

1 Answers   LG Soft,


Write a C program to get the desired output. 1 1 2 1 1 3 3 1 1 4 6 4 1 1 5 10 10 5 1 . . . 1 n..............n 1 Note: n is a positive integer entered by the user.

4 Answers  


Why doesn't the code "int a = 1000, b = 1000; long int c = a * b;" work?

7 Answers  


Categories