Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Int to 4 bytes
//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 Rextester { public class Program { public static void Main(string[] args) { int a = 59457; Console.WriteLine(BitConverter.GetBytes(a)[0]+" "+BitConverter.GetBytes(a)[1]+" "+BitConverter.GetBytes(a)[2]+" "+BitConverter.GetBytes(a)[3]); byte[] buffer = new byte[4]; buffer[0] = (byte) a; buffer[1] = (byte) (a >> 8); buffer[2] = (byte) (a >> 0x10); buffer[3] = (byte) (a >> 0x18); Console.WriteLine(buffer[0]+" "+buffer[1]+" "+buffer[2]+" "+buffer[3]); } } }
run
|
edit
|
history
|
help
0
Charan GR
remove special char c#
asxsdf
Sam a,b and c
Find if the given word occurs in the string necessarily in that order.
Prism area
Max occured character in a string
Create Sealed Class Object
Конструктор класса
Linq