Submitted by
Comments
Comments are parts of the source code disregarded by the compiler. They simply do nothing.
All in just one line and this would have had exactly the same meaning as the previous code.
In C++, the separation between statements is specified with an ending semicolon (;) at the end of each on
using System;
class Array {
public static void Main() {
int[] myInts = { 5, 10, 15 };
/*Simple program for single dimensional array */
class Test
{ static void Main() { //array of integers int[] nums = new int[5]; // Array of s
using System; class VarAccess { class AccessCls { public int num1 = 123; // int num2 = 54; } static void Main() { AccessCls cls = new AccessCls(); int num1 = 98;
num1 = cls.num1; //int
// Program to understang go-to control
using System; class dowhile1 {
Console.WriteLine("What is your name?
#include #include
using namespace std;
int main(int argc, char* argv[]) { long max = 0; long sum = 0;
cout<<"Enter Maximum No:"; cin>>max;
class IntIndexer { private string[] myData;
public IntIndexer(int size) { myData = new string[size];
public class MyClass { public static void Main() { int num1 = 6; int num2 = 23; int res = num1 + num2; if (res > 25)
//Program for displaying date,time using System;
class MainClass {
string t;
DateTime dt = DateTime.Now;
t = dt.ToString("D")