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

Explain continue keyword in c

997


How pointers are declared?

942


What is line in c preprocessor?

1036


What is the difference between break and continue?

1483


When is a “switch” statement preferable over an “if” statement?

1130


Why is c used in embedded systems?

1101


Explain the advantages and disadvantages of macros.

1078


which is conditional construct a) if statement b) switch statement c) while/for d) goto

1207


Can I use base-2 constants (something like 0b101010)? Is there a printf format for binary?

989


In c programming, explain how do you insert quote characters (? And ?) Into the output screen?

1226


Difference between constant pointer and pointer to a constant.

1117


simple program of graphics and their output display

1976


What is formal argument?

1120


Why is sprintf unsafe?

1052


How can I recover the file name given an open stream?

999