当前位置:网站首页>June 21, 2022: golang multiple choice question, what does the following golang code output? A:3; B:4; C:100; D: Compilation failed. package main import (
June 21, 2022: golang multiple choice question, what does the following golang code output? A:3; B:4; C:100; D: Compilation failed. package main import (
2022-06-21 23:15:00 【Fuda scaffold constructor's daily question】
2022-06-21:golang choice question , following golang What does the code output ?A:3;B:4;C:100;D: Compile failed .
package main
import (
"fmt"
)
func main() {
m := [...]int{
'a': 1,
'b': 2,
'c': 3,
}
m['a'] = 3
fmt.Println(len(m))
}answer 2022-06-21:
Answer selection C. The reason is that 'c' Of ASCII The value of is 99, Slice indices 99, Slice length must be 100 And above .
The operation results are as follows :
边栏推荐
猜你喜欢

Translation software Bob installation tutorial

uniapp版本更新 热更新及自然更新

Left hand code, right hand open source, part of the open source road

Prediction of enzyme activity parameters by deep learning construction of enzyme binding model

原生小程序 申请小程序 - 发布流程

Mongo uses too much memory and is automatically shut down by the system

Distributed database uses logical volume to manage storage expansion

Parallel search exercise 1: circle of friends

《MATLAB 神经网络43个案例分析》:第9章 离散Hopfield神经网络的联想记忆——数字识别

If you spend 200W to buy traffic, it is better to start at 0 cost and make an independent station with high private domain operation income!
随机推荐
啊啊啊啊啊啊啊
Contracting of development environment and test environment (and request encapsulation of uniapp)
力扣75:颜色分流
WSL 2 的安装过程(以及介绍)
mongo 内存占用过大被系统自动关闭问题
WPF dependent properties
If you spend 200W to buy traffic, it is better to start at 0 cost and make an independent station with high private domain operation income!
#CISSP认证2021年教材 OSG 第9版 增(改)知识点:与 第8版 的目录对比
[WUSTCTF2020]朴实无华-1
牛客月賽-環上食蟲
WPF x:Static
有一说一,高并发系统设计其实一点都不难!
H5之微信授权登陆 (uniapp网页版微信授权登录)
Buckle 75: color split
Uwp confirms whether there is pop-up display
Go service platform project (I) design of database tables and use of gendry Library
Some users of uniapp wechat authorization cannot be authorized normally
Fedora 36 compiling and installing opencv 4.6.0 -- the road to building a dream
Uniapp play video, download video to mobile photo album, add download progress bar function (step on pit record)
378. 有序矩阵中第 K 小的元素-常规法