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
can anyone please tell about the nested interrupts?
What does s c mean in text?
What is typedef?
What is a program flowchart and how does it help in writing a program?
Explain what is #line used for?
Explain what is the difference between null and nul?
What is the difference between c &c++?
Is main is user defined function?
Explain how are portions of a program disabled in demo versions?
which type of aspect you want from the student.
Write the test cases for checking a variable having value in range -10.0 to +10.0?
Given an array of 1s and 0s arrange the 1s together and 0s together in a single scan of the array. Optimize the boundary conditions?
Define VARIABLE?
What is "Hungarian Notation"?
to print the salary of an employee according to follwing calculation: Allowances:HRA-20% of BASIC,DA-45% of BASIC,TA-10%. Deductions:EPF-8% of BASIC,LIC-Rs.200/-Prof.Tax:Rs.200/- create c language program?