What is the data type used to store whole numbers in Go?
- bool
- float
- int
- string
In Go, the data type used to store whole numbers is 'int'. Integers are used to represent whole numbers without any fractional part. They can be either positive or negative.
Loading...
Related Quiz
- Describe a real-world scenario where a NoSQL database would be a better fit than a SQL database.
- Which property of transactions ensures that either all the operations in a transaction are completed successfully, or none of them are applied to the database?
- When creating a custom error, additional information can be included as _____ in the error structure.
- In Go, what is a table-driven test?
- Which NoSQL database is known for its document-oriented approach and is commonly used for its flexibility and scalability?