.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Melody Anderson
Eminent IT

Home >> Code Snippets >> Collections >> Post New Resource Bookmark and Share   

 Subscribe to Code Snippets

Concatenation of integer and string

Posted By:Karthikeyan Anbarasan       Posted Date: January 02, 2011    Points: 15    Category: Collections    URL: http://www.dotnetspark.com  

This code shows concatenation of an Integer and string and show the output in a console application

class Program
        static void Main(string[] args)
            int intInteger;
            string strString;
            intInteger = 17;
            strString = "\"Integer value\" is";
            Console.WriteLine("{0} {1}.", strString, intInteger);


Further Readings:


No response found. Be the first to respond this post

Post Comment

You must Sign In To post reply
Find More code samples in C#, ASP.Net, Vb.Net and more Here

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend