Consider the following program:
#include <iostream> using namespace std; int main() { char name[]="Priya Kaushal"; char *ptr=name; while(*ptr!=NULL){ cout<<*ptr; ptr++; } cout<<endl; return 0; }
Priya Kaushal
total answers (1)
start bookmarking useful questions and collections and save it into your own study-lists, login now to start creating your own collections.
Consider the following program:
Output