- 2

What is the value of x after this code?

c# code. Module 6 int[] arr = {8, 5, 4}; Array.Reverse(arr); double x = Math.Pow(arr[0], 2); answer : 16

10th Feb 2018, 2:26 AM
Mesut Alcicek
Mesut Alcicek - avatar
7 Answers
+ 10
Mesut, I think you have misunderstood the purpose of the Q&A section. You should post questions on subjects you require help with or about features on sololearn you would like to see added or improved. Although your questions are programming related (as there is code in them) they still could be considered spam as you have provided the answers leaving little, if anything to be discussed.
10th Feb 2018, 2:41 AM
jay
jay - avatar
+ 4
Answer Is 16
16th Aug 2018, 8:54 PM
M4jid007
M4jid007 - avatar
+ 1
Yes.
10th Feb 2018, 2:32 AM
Fata1 Err0r
Fata1 Err0r - avatar
0
Mesut, I think you have misunderstood the purpose of the Q&A section. You should post questions on subjects you require help with or about features on sololearn you would like to see added or improved. Although your questions are programming related (as there is code in them) they still could be considered spam as you have provided the answers leaving little, if anything to be discussed.
27th Feb 2019, 7:08 PM
Jalen Lee
Jalen Lee - avatar
0
answer: 16
10th Jan 2020, 1:14 AM
Đào Ngọc Tuáș„n Anh
Đào Ngọc Tuáș„n Anh - avatar
0
answer = 16
27th Jan 2022, 7:35 AM
Bhashitha Kaveesh
- 1
What is the value of x after these statements execute? int[ ] a = {4, 7, 2}; int x = a[0]+a[2]; ================= Answers : 6 ================ coding with cshap using System; namespace MyApplication { class Program { static void Main(string[] args) { int[ ] a = {4, 7, 2}; int x = a[0]+a[2]; Console.WriteLine(a[0]+a[2]); } } } What is the value of x after these statements execute? int[ ] a = {4, 7, 2}; int x = a[0]+a[2];
26th Sep 2021, 4:06 AM
YOUN Tit
YOUN Tit - avatar