Char* a="number" char* b=++a; then cout<<++b | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Char* a="number" char* b=++a; then cout<<++b

how it will run

17th Jan 2017, 8:08 AM
Prakash kumar Verma
Prakash kumar Verma - avatar
1 Answer
0
#include <iostream> #include <iomanip> using namespace std; int main() { char *a="number"; while (*a!='\0'){ cout<<*a<<setw(10)<<a<<endl; *a++; } return 0; }
17th Jan 2017, 10:01 AM
ASNM
ASNM - avatar