Question: printprogramname / main . go github.com / 0 1 - edu / z 0 1 . PrintRune, os . Args, - - allow - builtin

printprogramname/main.go
github.com/01-edu/z01.PrintRune, os.Args, --allow-builtin
Instructions
Write a program that prints the name of the program.
Example of output :
student/piscine/printprogramname$ go build main.go
student/piscine/printprogramnane$ ./main
main
student/piscine/printprogramname$ go build
student/piscine/printprogramname$ ./printprogramname | cat -e
printprogramname$
student/piscine/printprogramname$ go build -o Nessy
student/piscine/printprogramname$ ./Nessy
Nessy
student/piscine/printprogramname$

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!