#include using namespace std; //myArraygetchar1.cpp int main() { char ch1[100]; int count=0; cout<<"\n type some thing \n"; while((ch1[count]=getchar())!='\n') { ch1[count]; count++; } cout<<"\n ------captured text-------- \n"; ch1[count]='\0'; cout << "\n "<< ch1; cout<<"\n total characters "<< count ; return 0; }