what is difference between array of characters and string

Answers were Sorted based on User's Feedback



what is difference between array of characters and string..

Answer / satyaki paul

In an array,the characters are loosely bound while in a
String ,the characters are comparatively tightly bound

Is This Answer Correct ?    1 Yes 1 No

what is difference between array of characters and string..

Answer / aqi khyber

a character is a single letter,numeral,or punctuation mark,
or other such symbol or special character while a string is
any sequence of all these different types of characters..

Is This Answer Correct ?    0 Yes 0 No

what is difference between array of characters and string..

Answer / afaquie ahmed siddiqui

in case character array,each character is located at
contiguous memory location,we can not print them just by the
name.we have to apply some loop opration.
BUT in case of string,a BLOCK of memory is assign to whole
string,we can print them just by string name with %s.
like...
printf("%s",name of string);

Is This Answer Correct ?    0 Yes 0 No

what is difference between array of characters and string..

Answer / ankur

Character Array is like an array of datatype character.
For e.g.

char ch[10];

string is an object of class String in standard C++ library
which may be implemented for storing characters at low
level.

Is This Answer Correct ?    2 Yes 3 No

what is difference between array of characters and string..

Answer / ashish pandey

String is a group of character and it is used double
quatation(""), but array of stringis used single
quatation('').

Is This Answer Correct ?    1 Yes 10 No

what is difference between array of characters and string..

Answer / revathy

In terms of C language,
string is nothing but the array of characters.
char a[10] is nothing but a string with 9 characters and a
null..

Is This Answer Correct ?    15 Yes 34 No

what is difference between array of characters and string..

Answer / varsha vilas kalebag

aaray is nothing but set of data type
string is nothing but group of character

Is This Answer Correct ?    34 Yes 55 No

what is difference between array of characters and string..

Answer / rayees ahmad

we can stoore set of names in string,but can store only
charcter's in array

Is This Answer Correct ?    10 Yes 36 No

Post New Answer

More C Interview Questions

What is string function in c?

0 Answers  


What is null pointer constant?

0 Answers  


simple program of graphics and thier outpu display with a want what is out put of graohics in c language

1 Answers   CSC, HCL,


write a program wch produces its own source code aas its output?

1 Answers   IonIdea,


write a program fibonacci series and palindrome program in c

0 Answers   Aditi Placement Service,






Write a program with dynamically allocation of variable.

0 Answers   Atos Origin,


What are c identifiers?

0 Answers  


Write a program in c to input a 5 digit number and print it in words.

11 Answers  


Explain the difference between getch() and getche() in c?

0 Answers  


What is Conio.h ?

2 Answers   TCS,


Calculate the weighted average of a list of n numbers using the formula xavg = f1x1+f2x2+ ….+ fnxn where the f’s are fractional weighting factors, i.e., 0<=fi<1, and f1+f2+….+fn = 1

0 Answers  


Explain what does a function declared as pascal do differently?

0 Answers  


Categories