Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- // co 2 numer to 5
- using namespace std;
- int main()
- {
- char text1[] = "123456789012345"; // size of array? 16 last element is not visible [0]
- char text2[] = "fsa2nioawaaiofamanaieaoba";
- cout <<text1<<endl;
- int i=0;
- while (text1[i]!=0){
- cout << text1[i]<<endl;
- i++;
- }
- int m = sizeof (text1);
- cout << "Size of text1 is "<<m<<endl;
- text1[9] = 0;
- cout <<text1<<endl;
- i=0;
- while (text2[i]!=0){
- text2[i]='5';
- i+=2;
- }
- cout <<text2<<endl;
- cout << " " << endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement