Why is 32 required ? | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
0

Why is 32 required ?

using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace SoloLearn { class Program { static void Main(string[] args) { int age = Convert.ToInt32(Console.ReadLine()); Console.WriteLine("You are {0} years old", age); } } }

25th Jun 2021, 8:24 AM
Parikshit
1 ответ
+ 5
Parikshit The given string will be converted to an equivalent 32-bit signed integer it's not 32 in number it's a 32-bit that's why 32 is used.
25th Jun 2021, 9:39 AM
R💠🇮🇳
R💠🇮🇳 - avatar