Error While printing String using Pointer

Dec 12 2017 2:46 PM
I'm getting an error while printing the string using pointer operation
 
Program code:
---------------------
#include<stdio.h>
#include<conio.h>
void main()
   {
   char v="Arul";
   char *ptr;   
   clrscr();
   *ptr=v;
   printf("\n%s",*ptr);
   printf("\nAddress:%p",ptr);
   getch();
   }
 
 

Answers (1)