HI I have following three strings,
char* string1, string2, string3;
printf("First string = %s", string1);
printf("Second string = %s", string2);
printf("Third string = %s", string3);
Output of above code is,
First string = My Content is : %s, My value is : %d
Second string = Open source OS
Thirf string = 100
Now i need to merge the string2 and string3 content at the place of %s & %d simultaneousaly, so that i should get following string,
My Content is : Open source OS
My value is : 100
can any one suggest me how to add the above two strings to another string.
Thanks in advance.
Use
sprintfalong withprintfas: