bool example

This commit is contained in:
Mert Gör ☭ 2024-01-08 16:16:54 +03:00
parent 949c25bb2d
commit e036e57e75
Signed by: hwpplayer1
GPG Key ID: 03E547D043AB6C8F
1 changed files with 3 additions and 0 deletions

View File

@ -39,4 +39,7 @@ fn main() {
// f32 or f64 can't be u , it is signed by default IEEE754 ile none, can be assigned +- infinite values
let h:f32 = 2.00000000005;
println!("h = {} and it's size {}", h,mem::size_of_val(&h));
let i:bool = false; // true
println!("i = {} and it's size {}", i,mem::size_of_val(&i));
}