Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Combining String & int value

Status
Not open for further replies.

sleuth

Programmer
Jan 12, 2001
134
0
0
US

Hello,

If I have a string named "table" and an integer value of "55689", how can I combine them to form table55689 and then access the character array which is named table55689???

Thank You,

Tony
 
strcat and atoi
Disclaimer:
Beware: Studies have shown that research causes cancer in lab rats.
 

Thank you, I got it working with sprintf,

but strcat(text1,text2); also works, I'm keeping it in mind for same type combinations.

Tony
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top