what is difference between array of characters and string
Answer Posted / zubair
String is much same as character array, it can also be
checked by each characters:
string str;for(int i=0;str[i]!='\0';i++) cout <<str[i]<<endl;
1. The NULL terminator is loaded automatically in string.('\0')
2.Both of them drop the data after space when we take input.
| Is This Answer Correct ? | 35 Yes | 4 No |
Post New Answer View All Answers
What is hash table in c?
Under what circumstances does a name clash occur?
Tell me when would you use a pointer to a function?
What does static variable mean in c?
What is bubble sort technique in c?
Write a program to print “hello world” without using semicolon?
1. Write a function to display the sum of two numbers in the following ways: By using (i) pass by value (ii) pass by address a. function with argument and with return value b. function with argument and without return value c. without argument , with return value d. without argument , without return value Note: Use pass by address.
a=10;b= 5;c=3;d=3; if(a printf(%d %d %d %d a,b,c,d) else printf("%d %d %d %d a,b,c,d);
Describe the modifier in c?
How does normalization of huge pointer works?
What are the uses of null pointers?
How can I find out how much free space is available on disk?
Tell us the use of fflush() function in c language?
How to find a missed value, if you want to store 100 values in a 99 sized array?
Write a program of advanced Fibonacci series.