C program to print characters in a string and address of each character

#include<stdio.h>
#include<conio.h>
void main()
{
   int i=0;
   char str[10];
   printf("n Enter any string:");
   scanf("%s",&str);
   while(str[i]!='')
   {
     printf("character = %ct",str[i]);
     printf("address = %pn",&str[i]);
   }
   getch();
} 

Ouput:

Enter a string: clessons
character = c   address = FFEC
character = l   address = FFED
character = e   address = FFEE
character = s   address = FFEF
character = s   address = FFF0
character = o   address = FFF1
character = n   address = FFF2
character = s   address = FFF3


error: Content is protected !!