WHAT IS MAXIMUM SIZE OF AN ARRAY IN C LANGUAGE?
Answer Posted / mohit
if array is of integer type then max size should be
65536.(ie total range for integers).however it shows array
size too large.for character data type the range 65536 is valid.
| Is This Answer Correct ? | 40 Yes | 12 No |
Post New Answer View All Answers
Difference between constant pointer and pointer to a constant.
What is a function simple definition?
The purpose of this exercise is to benchmark file writing and reading speed. This exercise is divided into two parts. a). Write a file character by character such that the total file size becomes approximately >10K. After writing close the file handler, open a new stream and read the file character by character. Record both times. Execute this exercise at least 4 times b). Create a buffer capable of storing 100 characters. Now after generating the characters, first store them in the buffer. Once the buffer is filled up, store all the elements in the file. Repeat the process until the total file size becomes approximately >10K.While reading read a while line, store it in buffer and once buffer gets filled up, display the whole buffer. Repeat the exercise at least 4 times with different size of buffer (50, 100, 150 …). Records the times. c). Do an analysis of the differences in times and submit it in class.
What is structure packing in c?
State the difference between realloc and free.
Can stdout be forced to print somewhere other than the screen?
What could possibly be the problem if a valid function name such as tolower() is being reported by the C compiler as undefined?
What the different types of arrays in c?
Explain a file operation in C with an example.
How can I open files mentioned on the command line, and parse option flags?
What is the correct code to have following output in c using nested for loop?
we need to calculating INCOME TAX for the person. The INCOME TAX is as follows:- First $10000/- of income : 4% tax Next $10000/- of income : 8% tax Next $10000/- of income : 11.5% tax above $10, 00,00/- : 15% tax What is the Solution of this Question ?
What is use of null pointer in c?
What is the difference between null pointer and wild pointer?
#include main() { int *p, *c, i; i = 5; p = (int*) (malloc(sizeof(i))); printf(" %d",*p); *p = 10; printf(" %d %d",i,*p); c = (int*) calloc(2); printf(" %d ",*c); }