Skip to content

sarmadgulzar/rust

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Rust

Hello World

fn main() {
    println!("Hello, world!");
}

Define variables

let var = 7;

Primitive Data types

  • Signed Integer
    • i8
    • i16
    • i32
    • i64
    • i128
    • isize
  • Unsigned Integer
    • u8
    • u16
    • u32
    • u64
    • u128
    • usize
  • Float
    • f32
    • f64
  • Boolean
    • bool
  • Character
    • char

Define variables with data type

let var: i32 = 7;
let var = 42u8;

About

Resources

License

Stars

0 stars

Watchers

1 watching

Forks

Contributors