WHAT IS MAXIMUM SIZE OF AN ARRAY IN C LANGUAGE?
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / gagandeep kaur
max size of an array is depends upon its datatype
| Is This Answer Correct ? | 31 Yes | 6 No |
Answer / seema choudhary
Depending upon a data type
integer datatype it limits is 65536 i.e range of the
integer data type
| Is This Answer Correct ? | 5 Yes | 3 No |
Answer / himani
integer datatype limit is array size limit. for systems with
2 byte integers...limit is 65535
| Is This Answer Correct ? | 3 Yes | 3 No |
Answer / vijay
max size of characfter array is 80.
max size of int or float array is equal to their range.
| Is This Answer Correct ? | 6 Yes | 28 No |
#define swap1(a,b) a=a+b;b=a-b;a=a-b; main() { int x=5,y=10; swap1(x,y); printf("%d %d\n",x,y); swap2(x,y); printf("%d %d\n",x,y); } int swap2(int a,int b) { int temp; temp=a; b=a; a=temp; return; } what are the outputs?
plz answer.. a program that takes a string e.g. "345" and returns integer 345
How does pointer work in c?
#include<stdio.h> #include<conio.h> void main() { clrscr(); int a=0,b=0,c=0; printf("enter value of a,b"); scanf(" %d %d",a,b); c=a+b; printf("sum is %d",c); getch(); }
How is a structure member accessed?
Explain what could possibly be the problem if a valid function name such as tolower() is being reported by the c compiler as undefined?
Write an algorithm for implementing insertion and deletion operations in a singly linked list using arrays ?
i have a written test for microland please give me test pattern
every function has return the value?
what is pointer?
13 Answers HCL, TCS,
#include<stdio.h> #include<conio.h> int main() { int a[4][4]={{5,7,5,9}, {4,6,3,1}, {2,9,0,6}}; int *p; int (*q)[4]; p=(int*)a; q=a; printf("\n%u%u",p,q); p++; q++; printf("\n%u%u",p,q); getch(); return 0; } what is the meaning of this program?
What is the code for 3 questions and answer check in VisualBasic.Net?