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
Why main is used in c?
How can I write data files which can be read on other machines with different word size, byte order, or floating point formats?
Write a Program to accept different goods with the number, price and date of purchase and display them
What is the meaning of ?
What is hashing in c language?
Is c high or low level?
how many types of operators are include in c language a) 4 b) 6 c) 8 d) 12
Explain what are the different data types in c?
Is c pass by value or reference?
Is c++ based on c?
What are the modifiers available in c programming language?
Can you think of a logic behind the game minesweeper.
WRITE A CODE IN C TO SEARCH A FILE FROM NOTEPAD FILE.
Why can arithmetic operations not be performed on void pointers?
What are the different types of linkage exist in c?