Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace Articulos.Cap06
- {
- public class FormacionCaracteres
- {
- public static void Main()
- {
- char[] caracteres = new char[4];
- caracteres[0] = 'X'; // Representación explícita del carácter X
- caracteres[1] = '\x0058'; // Representación hexadecimal
- caracteres[2] = (char)88; // Representación entera
- caracteres[3] = '\u0058'; // Representación en Unicode
- // Impresión de los caracteres en la salida estándar:
- foreach(char caracter in caracteres)
- {
- Console.Write(caracter + " ");
- }
- Console.WriteLine ();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement