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
How can you allocate arrays or structures bigger than 64K?
What is a pointer variable in c language?
What is the purpose of 'register' keyword in c language?
how can use subset in c program and give more example
Define the scope of static variables.
What is c++ used for today?
What is line in c preprocessor?
What is a program flowchart?
#include
What is extern variable in c with example?
HOW TO SOLVE A NUMERICAL OF LRU IN OS ??????
What is the package for freshers(Non IIT) in amazon(hyderabad). And what is the same for those who are a contract employee.
Is null valid for pointers to functions?
typedef enum { html, java, javascript, perl, cgi } lang;The above statement defines a : a) Union b) User defined type c) Enumerated variable d) none
What do you mean by recursion in c?