Hi Folks
I have a question...and I have tried several ways to solve this...but everything went on in vain.
How can I concatenate a String and an Integer in c.I need to have string say Ravi and an integer say i=1.
I have to find a way to declare a variable called Ravi1.How to do this???
I wrote the following Code..
But things are not working well!!!Code:#include<stdio.h> #include<stdlib.h> #include<string.h> main() { int i=0; char *s="Ravi"; for(i=0;i<10;i++) { char *strcat(s,itoa(i))="Hai"; } }
So can some one help me solve this!!!!
}