0
I’m starting programming and was trying to do a string manipulation, someone could help me in the code below where I would be missing:
#include <stdio.h>
int main( int, char ** )
{
char nome[] = "zezinho";
int i;
for ( i = 0; i < 500; i++ )
{
if ( nome[i] = "z" );
nome[i] = "p";
}
printf( "%c", nome[i] );
}
In compiler gives an invalid conversion error of const char
for char
.
Wow, it worked perfectly. Thank you very much, but I have so many doubts. I wanted to know 10% of what you know... One day I get there. Thank you again.
– Célio Eduardo