+ 1
Can someone please explain int mark?
I know its simple, but can someone explain integer mark and when i should use it?
3 Answers
+ 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.
0
it is mainly for no.s
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