Thanks for the replies!  I actually did something similar.  I created char 1k[1024].  But I just wanted to confirm if there was actually any harm in doing so, especially when doing the same for the 1G array.  Or if there was a better way of doing it.
I am mostly a Python/Java programmer. I just got started with C in my internship and I am trying to see if larger arrays will cause memory modules to consume more power.  I have to run the...
					
					
						User Profile
				
					Collapse
				
			
		
	
- 
	
	
	
	
 1 K or 1 G ArrayHello!
 
 I am running some tests and I need to create arrays of specific sizes. I have scavenged many online tutorials/materials to try to find out how I can generate a 1-kilobyte or a 1-gigabyte array in C (or python) without much success.
 
 Could anyone please help?
 
 Gratefully yours,
 
 atwinix
No activity results to display
							Show More
							
Leave a comment: