difference between string and array?

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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can I write a function analogous to scanf?

662


.find the output of the following program? char*myfunc(char*ptr) { ptr +=3; return (ptr); } int main() { char*x,*y; x="HELLO"; y=myfunc(x); printf("y = %s ",y); return 0; }

2004


Explain output of printf("Hello World"-'A'+'B'); ?

979


what are the program that using a two dimensional array that list the odd numbers and even numbers separately in a given 10 inputs values

1259


What functions are used for dynamic memory allocation in c language?

604






What is a node in c?

552


What is meant by int main ()?

721


I came across some code that puts a (void) cast before each call to printf. Why?

685


what is uses of .net

1279


Once I have used freopen, how can I get the original stdout (or stdin) back?

631


What is the use of a semicolon (;) at the end of every program statement?

778


Explain the difference between malloc() and calloc() function?

604


What is c mainly used for?

601


How can I write data files which can be read on other machines with different word size, byte order, or floating point formats?

616


A program is required to print your biographic information including: Names, gender, student Number, Cell Number, line of study and your residential address.

1256