Click here to Skip to main content
15,923,083 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I need two character type 2d array like this.
Objective-C
#include<stdio.h>
#include<conio.h> 
#include<string.h>

char queue[200000][10], origin[200000][10];
void main()
{
 ............
}

But when I compile this program, compiler show an error that "Too much global data define in file.". How can I fix this problem.
Posted
Comments
Sergey Alexandrovich Kryukov 13-Oct-14 12:38pm    
The body of the question and the title are different questions. You actually are not trying to declare "the largest".
—SA
sazzad37 13-Oct-14 12:41pm    
Thank you for your reply. I need two 200000*10 character array. Is it possible in c?

1 solution

Avoid declaring too much data statically. You can allocate more data on the heap: http://en.wikipedia.org/wiki/C_dynamic_memory_allocation[^].

—SA
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900