Home » Technical Questions » Programming

Point out the error in the following program. main() { char mybuf[] = "Zanzibar" ; char yourbuf[] = " Zienckewiz"; char * const ptr = mybuf; *ptr = 'a'; ptr = yourbuf; }

← Previous Next →

Discussion & Comments

No comments yet. Be the first to comment!