C# Saved Program: gifted-dog

facebook share

Here's the online compiler accompanied with IDE at your service. This is a saved code by one of our users. Try it out or save your own from the IDE page and don't forget to leave a feedback. You can find that at the bottom of the page.


//Rextester.Program.Main is the entry point for your code. Don't change it.
//Compiler version 4.0.30319.17929 for Microsoft (R) .NET Framework 4.5

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text.RegularExpressions;

namespace HelloWorldNamespace {
    class HelloWorld {
        public unsafe void squareme(int* a) {
            Console.WriteLine("Address of object : {0}" , (int)a );
            (*a) *= (*a);
        }
        
        
        public unsafe static void Main()
        {
            int hr = 9;
            Console.WriteLine(hr);
            squareme(&hr);
            Console.WriteLine(hr);
        }
    }
}
Execute

Output

Press the execute button or CTRL + enter to run code.

Inputs