W
whitedragon007
Hi I'm trying to print "Spiderman is amazing" twice but on the secon
line, it is giving me some weird symbols. Can someone please help m
fix this problem... Thanks...
#include <iostream.h>
main()
{
char mynameis[]="Spiderman is amazing";
char string[25];
char *ptr=mynameis;
char *p=string;
for(int i=0; mynameis !='\0'; i++)
*p = *ptr;
cout<<ptr<<'\n';
cout<<p<<'\n';
return 0;
-
whitedragon00
line, it is giving me some weird symbols. Can someone please help m
fix this problem... Thanks...
#include <iostream.h>
main()
{
char mynameis[]="Spiderman is amazing";
char string[25];
char *ptr=mynameis;
char *p=string;
for(int i=0; mynameis !='\0'; i++)
*p = *ptr;
cout<<ptr<<'\n';
cout<<p<<'\n';
return 0;
-
whitedragon00