syntax for string variables c# code example Example 1: how to make a string in c# string teststring = ""; Example 2: /* String type demo program */ using namespace std;