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

Define macros.

1286


How do I get an accurate error status return from system on ms-dos?

1138


Explain what are bus errors, memory faults, and core dumps?

1288


What are the three constants used in c?

1003


Is c easy to learn?

997


How arrays can be passed to a user defined function

1036


What is sizeof in c?

1017


What is static and auto variables in c?

1098


What are the 4 types of programming language?

1139


Create a registration form application by taking the details like username, address, phone number, email with password and confirm password (should be same as password).Ensure that the password is of 8 characters with only numbers and alphabets. Take such details for 3 users and display the details. While taking input password must appear as “****”.

3189


Explain the properties of union.

1094


Why is it usually a bad idea to use gets()? Suggest a workaround.

1804


hi any body pls give me company name interview conduct "c" language only

2293


What is d'n in c?

1129


Write a code to generate a series where the next element is the sum of last k terms.

1238