Hello,

I am new to Visual C++ and i am not sure what does " Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast" compiler error mean.

When ever i try to do something like

printf(arr[1]); or strcpy(dest,arr[1]); i get this error?

PHP Code:
#include "stdafx.h"
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <iostream.h>
char szc[5]="10;0";
char pzod[1];


void doarray(char arr[], int size)
{
char hj[1];
    for(
int i 0sizei++)
    {
        
hj[1] = arr[i];
//Error caused here
strcpy(pzod,arr[i]);
//End Error
        
cout << hj[1];
    }
}


int main(int argccharargv[])
{
int x;    

doarray(szc,10);

cin >> x;

    return 
0;

I dont understand how to copy a character somewhere. All i need my prog to do is copy beginning of an array (2 chars) into a charactar string and end of an array (1 char) into a character array. Please help me to get rid of this cast errror.

Thanks for any help,

Thanks for your help,