Logo video2dn
  • Сохранить видео с ютуба
  • Категории
    • Музыка
    • Кино и Анимация
    • Автомобили
    • Животные
    • Спорт
    • Путешествия
    • Игры
    • Люди и Блоги
    • Юмор
    • Развлечения
    • Новости и Политика
    • Howto и Стиль
    • Diy своими руками
    • Образование
    • Наука и Технологии
    • Некоммерческие Организации
  • О сайте

Скачать или смотреть Part 12 Difference between int and Int32 in c#

  • kudvenkat
  • 2014-08-11
  • 116467
Part 12   Difference between int and Int32 in c#
Difference between int and Int32 in c#c# interview questions and answersC# (Programming Language)int vs int32
  • ok logo

Скачать Part 12 Difference between int and Int32 in c# бесплатно в качестве 4к (2к / 1080p)

У нас вы можете скачать бесплатно Part 12 Difference between int and Int32 in c# или посмотреть видео с ютуба в максимальном доступном качестве.

Для скачивания выберите вариант из формы ниже:

  • Информация по загрузке:

Cкачать музыку Part 12 Difference between int and Int32 in c# бесплатно в формате MP3:

Если иконки загрузки не отобразились, ПОЖАЛУЙСТА, НАЖМИТЕ ЗДЕСЬ или обновите страницу
Если у вас возникли трудности с загрузкой, пожалуйста, свяжитесь с нами по контактам, указанным в нижней части страницы.
Спасибо за использование сервиса video2dn.com

Описание к видео Part 12 Difference between int and Int32 in c#

Link for all dot net and sql server video tutorial playlists
   / kudvenkat  

Link for slides, code samples and text version of the video
http://csharp-video-tutorials.blogspo...

Healthy diet is very important both for the body and mind. If you like Aarvi Kitchen recipes, please support by sharing, subscribing and liking our YouTube channel. Hope you can help.
   / @aarvikitchen5572  

This is a very basic and a common c# interview question.

Int32 and int are synonymous, both of them allow us to create a 32 bit integer. int is shorthand notation (alias) for Int32. When declaring an integer in a c# program most of us prefer using int over Int32.

Whether we use int or Int32 to create an integer, the behaviour is indentical.

int i = 10;
Int32 j = 10;

Console.WriteLine("int i = " + i);
Console.WriteLine("Int32 j = " + j);
Console.WriteLine("int i + Int32 j = " + (i + j));

I think the only place where Int32 is not allowed is when creating an enum. The following code will raise a compiler error stating - Type byte, sbyte, short, ushort, int, uint, long, or ulong expected.
enum Test : Int32
{
XXX = 1
}

The following code will compile just fine
enum Test : int
{
XXX = 1
}

I can think of only the following minor differences between int and Int32
1. One of the difference is in readability. When we use Int32, we are being explicitl about the size of the variable.
2. To use Int32, either we need to use using System declaration or specify the fully qualified name (System.Int32) where as with int it is not required

The interviewer may also ask, what is the difference between string and System.String.
There is no difference string is an alias for System.String.

Комментарии

Информация по комментариям в разработке

Похожие видео

  • О нас
  • Контакты
  • Отказ от ответственности - Disclaimer
  • Условия использования сайта - TOS
  • Политика конфиденциальности

video2dn Copyright © 2023 - 2025

Контакты для правообладателей [email protected]