What’s the output of the following code?

package main
import "fmt"
func main() {
	var flagA int8 = 3
	var flagB int16 = 4
	sum := flagA + flagB
	fmt.Println(sum)
}

7

Compilation Error due to mismatched types

4

3

Verified Answer
Correct Option - b

To get all Go Programming Language - Assessment Exam questions Join Group https://bit.ly/infy_premium_group

We're passionate about offering best placement materials and courses!! A one stop place for Placement Materials. We daily post Offcampus updates and Placement Materials.

Qtr No. 213, New Town Yehlanka Indore 454775

admin@prepflix.in