can some one tell me a way to find the maximum memory limit that can be allocated to an integer array using static, stack dynamic or heap dynamic allocation.

thankz

see the <limits.h>, which defines the max value of all integer types. Allocations cannot exceed those values.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.