Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

How can I allocate arrays or structures bigger than 64K?

Answer Posted / dinakarangct

#include<stdio.h>
struct stud {
int i,j,k;
struct stud *next,*prev;
}**ptr;
void main(){
int i;
ptr= ( struct stud **)malloc(sizeof(struct stud*)*6400 );
for(i=0;i<6400;i++)
ptr[i]= ( struct stud *)malloc(sizeof(struct stud)*10 );
}

Is This Answer Correct ?    5 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can you allocate arrays or structures bigger than 64K?

1200


What is a pointer variable in c language?

1154


What is the purpose of 'register' keyword in c language?

1075


how can use subset in c program and give more example

2047


Define the scope of static variables.

1197


What is c++ used for today?

1152


What is line in c preprocessor?

1101


What is a program flowchart?

1283


#include { printf("Hello"); } how compile time affects when we add additional header file .

1939


What is extern variable in c with example?

1056


HOW TO SOLVE A NUMERICAL OF LRU IN OS ??????

2747


What is the package for freshers(Non IIT) in amazon(hyderabad). And what is the same for those who are a contract employee.

4332


Is null valid for pointers to functions?

1250


typedef enum { html, java, javascript, perl, cgi } lang;The above statement defines a : a) Union b) User defined type c) Enumerated variable d) none

1246


What do you mean by recursion in c?

1166