Raised This Month: $51 Target: $400
 12% 

Solved Confusion With Array


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
soumyadip77
Senior Member
Join Date: Jul 2017
Location: INDIA,KOLKATA
Old 10-10-2021 , 11:55   Confusion With Array
Reply With Quote #1

Hi Guys,

I have a bit confession.

Code:
new Array[2] //declared array

Array[0] = 2 //stored value 2 in Array[0]
Array[1] = 3 //stored value 3 in Array[1]
now i want to make value to 0 for the total array mean Array[0] and Array[1] values will be 0

so I do it this way

Code:
Array[0] = 0
Array[1] = 0

is there any other method to do this in 1 line??
__________________
Let's Help Each Other

Last edited by soumyadip77; 10-10-2021 at 12:09. Reason: Solved
soumyadip77 is offline
Send a message via Skype™ to soumyadip77
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 17:21.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode