Stack st = new Stack();st.Push("Csharp");st.Push(7.3);st.Push(8);st.Push('b');st.Push(true);
a) Unsimilar elements like “Csharp”, 7.3, 8 cannot be stored in the same stack collection
b) Boolean values can never be stored in Stack collection
c) Perfectly workable code
d) All of the mentioned
Which statement is correct in the following C#.NET code snippet?
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
Which statement is correct in the following C#.NET code snippet?
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!