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
How #define works?
if p is a string contained in a string?
What is #include stdio h and #include conio h?
Function which gives a pointer to a binary trees const an integer value at each code, return function of all the nodes in binary tree.?
Is multithreading possible in c?
How arrays can be passed to a user defined function
What is the use of typedef in c?
Is anything faster than c?
Why are all header files not declared in every c program?
When should the const modifier be used?
What is the purpose of void pointer?
write a program to convert a expression in polish notation(postfix) to inline(normal) something like make 723+* (2+3) x 7 (not sure) just check out its mainly printing expression in postfix form to infix.
Describe dynamic data structure in c programming language?
Write a C/C++ program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the maximum number of concurrent threads that the InnoDB plug-in can create.
Can we initialize extern variable in c?