c#串口程序接收数据并打印
In this C# program – we are going to print size of various data types, to print size of a type, we use sizeof() operator.
在此C#程序中–我们将打印各种数据类型的大小,并使用typeof()运算符打印类型的大小。
It accepts a data type and returns its size in the memory.
它接受数据类型并在内存中返回其大小。
Example:
例:
// C# program to C# program to print
// size of various data types
using System;
using System.IO;
using System.Text;
namespace IncludeHelp
{
class Test
{
// Main Method
static void Main(string[] args)
{
Console.WriteLine("sizeof(int): {0}", sizeof(int));
Console.WriteLine("sizeof(float): {0}", sizeof(float));
Console.WriteLine(&#