+ 1

Can someone please explain int mark?

I know its simple, but can someone explain integer mark and when i should use it?

3rd Dec 2016, 2:01 AM
Giovanni
Giovanni - avatar
3 Réponses
+ 4
int mark used when you want to calculate intenger counts. Int figures take in memory sertain place, and it is stored in Stack area of memory. It is nesessary to declare type of data (int, string, bool) to let a program know how much memory space to reserve for your calculation.
3rd Dec 2016, 4:53 AM
Irek Nabiullin
Irek Nabiullin - avatar
0
it is mainly for no.s
30th Dec 2016, 8:30 AM
Mayank Singh
Mayank Singh - avatar
0
int is used to declare an integer value or u want to take any input I.e integer. also when u want to give o/p as integer but the value is in float then u can use the below syntax- Console.WriteLine("{0}",(int)a); where a is float value but u want to print only it's integral value nd not the decimal part and also this will not round off the decimal value it will simply print main integer like if a=7.92 then it will only print 7. Hope this helps
1st Jan 2017, 6:44 AM
Harsh