M
Mohsen
Hello everybody,
I have an array of numbers that I want to put them in a string. I have
an example that you could complete it if you could or just let me know
how I can do that.
Thank you very much,
MJ
#include <stdio.h>
#define I 10
#define C 10
int main()
{
int II;
char CC[C];
int i;
int c;
for(i=0;i<10;i++)
{
II=i+1;
printf("%d %d\n",i,II);
}
/* the following part is not working? */
for(c=0;c<10;c++)
{
CC[c]=char(II[c]);
printf("%d %c\n",II[c],CC[c]);
}
}
I have an array of numbers that I want to put them in a string. I have
an example that you could complete it if you could or just let me know
how I can do that.
Thank you very much,
MJ
#include <stdio.h>
#define I 10
#define C 10
int main()
{
int II;
char CC[C];
int i;
int c;
for(i=0;i<10;i++)
{
II=i+1;
printf("%d %d\n",i,II);
}
/* the following part is not working? */
for(c=0;c<10;c++)
{
CC[c]=char(II[c]);
printf("%d %c\n",II[c],CC[c]);
}
}