Point out the error in the following program.
main()
{
char mybuf[] = "Zanzibar" ;
char yourbuf[] = " Zienckewiz";
char * const ptr = mybuf;
*ptr = 'a';
ptr = yourbuf;
}5
882 5b5cc7dce4d2b419777515c3
Q: Point out the error in the following program. main() { char mybuf[] = "Zanzibar" ; char yourbuf[] = " Zienckewiz"; char * const ptr = mybuf; *ptr = 'a'; ptr = yourbuf; }
- Show Answer
- Workspace
- Discuss