difference between string and array?

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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does d mean?

785


What is console in c language?

832


a parameter passed between a calling program and a called program a) variable b) constant c) argument d) all of the above

882


Tell me what is null pointer in c?

793


Is stack a keyword in c?

836


What is scope rule in c?

830


What is #include cctype?

821


What is fflush() function?

886


Where are some collections of useful code fragments and examples?

955


What is a floating point in c?

806


main() { struct s1 { char *str; struct s1 *ptr; }; static struct s1 arr[] = { {"Hyderabad",arr+1}, {"Bangalore",arr+2}, {"Delhi",arr} }; struct s1 *p[3]; int i; < BR> for(i=0;i<=2;i++) p[i] = arr[i].ptr; printf("%s ",(*p)->str); printf("%s ",(++*p)->str); printf("%s ",((*p)++)->str); }

1151


What does the characters “r” and “w” mean when writing programs that will make use of files?

1182


how many errors in c explain deply

1832


List out few of the applications that make use of Multilinked Structures?

1744


write a program to rearrange the array such way that all even elements should come first and next come odd

2026