Hi Guyz,
Does anyone know how to make a string (in C program) out of different types of variables? I have an int array called x and a string array called y. I need to make a string in the form of :
y[0]x[0]y[1]x[1]..... (Eg: a1u3b2%3#8...)
I tried to use strcat, but it's giving error saying my y array is int and it has to be char. Can some one help me plz... Does any one know how to create an array that can contain both int and string variables?
Palm.
Does anyone know how to make a string (in C program) out of different types of variables? I have an int array called x and a string array called y. I need to make a string in the form of :
y[0]x[0]y[1]x[1]..... (Eg: a1u3b2%3#8...)
I tried to use strcat, but it's giving error saying my y array is int and it has to be char. Can some one help me plz... Does any one know how to create an array that can contain both int and string variables?
Palm.
Comment