Hi,
I am new to c. I was trying to print out this message using pointers.
This is a test
No - it is not a test
This is my code.
Your help will be appreciated.Code:#include<stdio.h> #include<string.h> #include<stdlib.h> int main(){ char *p = "This is a test"; printf("%s\n",p); strcat(p,"No - this is a test"); printf("%s\n",p); }