what is difference between array of characters and string
Answers were Sorted based on User's Feedback
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
What is a pointer in c?
What is pass by value in c?
what is the use of keyword volatile??
The code is::::: if(condition) Printf("Hello"); Else Printf("World"); What will be the condition in if in such a way that both Hello and world are printed in a single attempt?????? Single Attempt in the sense... It must first print "Hello" and it Must go to else part and print "World"..... No loops, Recursion are allowed........................
14 Answers HOV Services, IBM, Potty,
What is the difference between i++ and i+1 ?(in terms of memory)
Lists the benefits of c programming language?
How can I make sure that my program is the only one accessing a file?
wt is diference between int and int pointer as same as float and float pointer and char and char pointer
What do mean by network ?
What are the 5 types of organizational structures?
Explain what is the difference between a string and an array?
where do we use volatile keyword?