1
Answer

Write statements to accomplish each of the following tasks

ahmed sami

ahmed sami

12y
4.4k
1
Write statements to accomplish each of the following tasks:

a) Display the value of the seventh element of character array f.
b) Initialize each of the five elements of single-subscripted integer array g to 8.
c) Total the elements of floating-point array c of 100 elements.
d) Copy 11-element array a into the first portion of array b containing 34 elements.
e) Determine the smallest and largest values contained in 99-element floating-point array w.
Answers (1)
0
Govinda Rajulu Yemineni

Govinda Rajulu Yemineni

NA 1.5k 233.1k 9y
Hi,
 
https://msdn.microsoft.com/en-us/library/astxcyeh(v=vs.110).aspx
 
https://msdn.microsoft.com/en-us/library/system.object.tostring(v=vs.110).aspx 
0
Rajeesh Menoth

Rajeesh Menoth

NA 24.7k 628.9k 9y
0
Rajeesh Menoth

Rajeesh Menoth

NA 24.7k 628.9k 9y
0
Abhay Shanker

Abhay Shanker

NA 10.5k 2.4m 9y
0
Sujeet Suman

Sujeet Suman

NA 5.5k 199.3k 9y
Keerthi I think your code is  right.
 
ContentPlaceHolder con = Page.Master.FindControl("MainContainer") as ContentPlaceHolder;
object t = con.FindControl("mahi");
string id = Convert.ToString(t);
string[] words = id.Split(',');
0
Lalit Raghav

Lalit Raghav

NA 849 37.7k 9y
First check object types .
 
ontentPlaceHolder con = Page.Master.FindControl("MainContainer") as ContentPlaceHolder;
object t = con.FindControl("mahi");
 
 
if(t.GetType().Equals(typeof(string)))
{
string id =Convert.ToString(t);
}
 
0
Nilesh Jadav

Nilesh Jadav

7 23.8k 5.7m 9y
Refer this link: