Home » C Programming » Constants

Point out the error in the program. #include<stdio.h> #define MAX 128 int main() { char mybuf[] = "India"; char yourbuf[] = "CURIOUSTAB"; char const *ptr = mybuf; *ptr = 'a'; ptr = yourbuf; return 0; }

← Previous Next →

Discussion & Comments

No comments yet. Be the first to comment!